[JS IR BE] Fix and refactor interop tests

This commit is contained in:
Svyatoslav Kuzmich
2019-02-14 19:43:22 +03:00
parent 569187a751
commit a736756ceb
37 changed files with 54 additions and 58 deletions
@@ -1,4 +1,4 @@
function bar(a) {
a.foo_za3lpa$();
a.foo_za3lpa$(99);
a.foo();
a.foo(99);
}
@@ -5,6 +5,7 @@ package foo
var global = ""
open class A {
@JsName("foo")
open fun foo(x: Int = 23) {
global += "A.foo($x);"
}
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR
// SKIP_MINIFICATION
package foo
val top = "TOP LEVEL"
@@ -11,7 +9,7 @@ fun box(): String {
assertEquals(5, eval("3 + 2"))
val PACKAGE = "JS_TESTS.foo"
val PACKAGE = "JS_TESTS"
assertEquals(top, eval("$PACKAGE.top"))
return "OK"
+1
View File
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME
// SKIP_MINIFICATION
// This test uses eval
// SKIP_NODE_JS