[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")
|
||||
Reference in New Issue
Block a user