JS: use eval instead of js in tests to refer local declarations to avoid renaming by resolveTemporaryNames
This commit is contained in:
committed by
Alexey Andreev
parent
ce1eabdf6f
commit
c1627e840b
@@ -15,7 +15,7 @@ internal external fun internal_baz(a: String) {
|
||||
definedExternally
|
||||
}
|
||||
|
||||
private fun getCurrentPackage(): dynamic = js("_").foo
|
||||
private fun getCurrentPackage(): dynamic = eval("_").foo
|
||||
|
||||
private fun private_baz(i: Int) {
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ fun callInternalFunctions() {
|
||||
package foo
|
||||
|
||||
private val currentPackage: dynamic
|
||||
get() = js("\$module\$lib").foo
|
||||
get() = eval("\$module\$lib").foo
|
||||
|
||||
private fun instantiate(classRef: dynamic, param: dynamic = js("undefined")) = js("new classRef(param)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user