[JS IR] switch to the IC Ir2Js and fix tests
This commit is contained in:
committed by
TeamCityServer
parent
4386a800c8
commit
ef4ef8c930
+8
-3
@@ -16,8 +16,13 @@ fun box(): String {
|
||||
// DCE preventing
|
||||
val b = B()
|
||||
|
||||
assertEquals("function", js("typeof A['\$invalid inner']"))
|
||||
assertEquals(js("undefined"), js("B['\$invalid inner']"))
|
||||
val aCtor = A::class.js.asDynamic()
|
||||
val bCtor = B::class.js.asDynamic()
|
||||
|
||||
assertEquals("function", typeOf(aCtor["\$invalid inner"]))
|
||||
assertEquals(js("undefined"), bCtor["\$invalid inner"])
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
private fun typeOf(t: Any): String = js("typeof t")
|
||||
@@ -1,5 +1,4 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1285
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
package foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user