[JS TESTS] Rename JS_TESTS module to main

This commit is contained in:
Ivan Kylchik
2021-09-05 16:00:35 +03:00
parent 32e6d3908d
commit 3e1563d46e
21 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ fun box(): String {
assertEquals(5, eval("3 + 2"))
if (testUtils.isLegacyBackend()) {
val PACKAGE = "JS_TESTS"
val PACKAGE = "main"
assertEquals(top, eval("$PACKAGE.top"))
}
@@ -1,7 +1,7 @@
function createA() {
function ADerived() {
}
ADerived.prototype = Object.create(JS_TESTS.A.prototype);
ADerived.prototype = Object.create(main.A.prototype);
ADerived.prototype.foo = function(n) {
return 24;
};
@@ -11,7 +11,7 @@ function createA() {
function createB() {
function BDerived() {
}
BDerived.prototype = Object.create(JS_TESTS.B.prototype);
BDerived.prototype = Object.create(main.B.prototype);
BDerived.prototype.bar = function(n) {
return this.foo(n);
};