[JS TESTS] Rename JS_TESTS module to main
This commit is contained in:
+1
-1
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user