JS: Drop native map get/set intrinsics altogether.

MutableMap.set extension operator is now common among stdlib and stdlib-js.
#KT-2323
This commit is contained in:
Ilya Gorbunov
2016-12-16 22:03:03 +03:00
parent e8c9e81235
commit 6ee8a23ddd
7 changed files with 9 additions and 124 deletions
-1
View File
@@ -1 +0,0 @@
var classes = {"answer": 42}, classesMutable = {};
-11
View File
@@ -1,11 +0,0 @@
package foo
external val classes: Map<String, Any> = noImpl
external val classesMutable: HashMap<String, String> = noImpl
fun box(): String {
classesMutable.set("why", "?")
return if (classes.get("answer") == 42 && classesMutable.get("why") == "?") "OK" else "fail"
}