[JS IR] switch to the IC Ir2Js and fix tests

This commit is contained in:
Anton Bannykh
2021-11-24 18:35:59 +03:00
committed by TeamCityServer
parent 4386a800c8
commit ef4ef8c930
7 changed files with 32 additions and 32 deletions
@@ -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")