[JS IR BE] Arrays, varargs

This commit is contained in:
Anton Bannykh
2018-09-12 14:31:22 +03:00
parent e24f68c357
commit 2e709a81fa
470 changed files with 761 additions and 585 deletions
@@ -21,8 +21,9 @@ internal interface InternalMap<K, V> : MutableIterable<MutableMap.MutableEntry<K
fun createJsMap(): dynamic {
val result = js("Object.create(null)")
// force to switch object representation to dictionary mode
result["foo"] = 1;
deleteProperty(result, "foo")
// Using js-function due to JS_IR limitations
js("result[\"foo\"] = 1")
js("delete result[\"foo\"]")
return result
}
}