JS_IR: make `deleteProperty` non-inline due to new inliner limitations
diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt
index 91949f9..01e1c3c 100644
--- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt
+++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt
@@ -1,4 +1,3 @@
-// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>()
diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt
index de99c8b..821e6fd 100644
--- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt
+++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt
@@ -1,4 +1,3 @@
-// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JVM_IR
class A : HashMap<String, Double>()
diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt
index 91949f9..01e1c3c 100644
--- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt
+++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt
@@ -1,4 +1,3 @@
-// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>()
diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt b/compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt
index c25e21c..2ca751e 100644
--- a/compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt
+++ b/compiler/testData/codegen/box/coroutines/controlFlow/kt22694_1_3.kt
@@ -1,4 +1,3 @@
-// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_COROUTINES
diff --git a/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt b/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt
index 3e6ba1c..9e08c33 100644
--- a/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt
+++ b/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JVM_IR
-// IGNORE_BACKEND: JS_IR
class MySet : HashSet<Int>() {
override fun remove(element: Int): Boolean {
return super.remove(element)
diff --git a/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt b/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt
index 620f73f..74f6859 100644
--- a/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt
+++ b/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt
@@ -1,4 +1,4 @@
-// IGNORE_BACKEND: JS_IR, JVM_IR
+// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FULL_JDK
diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt
index 463d52e..96f76c9 100644
--- a/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt
+++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt
@@ -77,7 +77,8 @@
"libraries/stdlib/js/src/kotlin/builtins.kt",
// Inlining of js fun doesn't update the variables inside
- "libraries/stdlib/js/src/kotlin/jsTypeOf.kt"
+ "libraries/stdlib/js/src/kotlin/jsTypeOf.kt",
+ "libraries/stdlib/js/src/kotlin/collections/utils.kt"
)
diff --git a/js/js.translator/testData/box/standardClasses/mutableMapRemoveWithCollision.kt b/js/js.translator/testData/box/standardClasses/mutableMapRemoveWithCollision.kt
index c1949b3..9eea090 100644
--- a/js/js.translator/testData/box/standardClasses/mutableMapRemoveWithCollision.kt
+++ b/js/js.translator/testData/box/standardClasses/mutableMapRemoveWithCollision.kt
@@ -1,4 +1,3 @@
-// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1287
package foo
diff --git a/libraries/stdlib/js/irRuntime/collectionsHacks.kt b/libraries/stdlib/js/irRuntime/collectionsHacks.kt
new file mode 100644
index 0000000..7641d3a
--- /dev/null
+++ b/libraries/stdlib/js/irRuntime/collectionsHacks.kt
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
+ * that can be found in the license/LICENSE.txt file.
+ */
+
+package kotlin.collections
+
+// Copied from libraries/stdlib/js/src/kotlin/collections/utils.kt
+// Current inliner doesn't rename symbols inside `js` fun
+@Suppress("UNUSED_PARAMETER")
+internal fun deleteProperty(obj: Any, property: Any) {
+ js("delete obj[property]")
+}