diff --git a/test/language/expressions/dynamic-import/assign-expr/additive-expr.js b/test/language/expressions/dynamic-import/assign-expr/additive-expr.js index ec0f39fae3..ba1397507f 100644 --- a/test/language/expressions/dynamic-import/assign-expr/additive-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/additive-expr.js @@ -26,12 +26,12 @@ const a = '_FIXTURE.js'; const b = '-other_FIXTURE.js'; async function fn() { - const ns1 = await import(x + a); + const ns1 = await import(x + a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(y + b); + const ns2 = await import(y + b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/array-literal.js b/test/language/expressions/dynamic-import/assign-expr/array-literal.js index 0e0d697630..12ae65a44b 100644 --- a/test/language/expressions/dynamic-import/assign-expr/array-literal.js +++ b/test/language/expressions/dynamic-import/assign-expr/array-literal.js @@ -23,13 +23,13 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import([a]); + const ns1 = await import([a]); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); Array.prototype.toString = () => b; - const ns2 = await import([]); + const ns2 = await import([]); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/arrow-function.js b/test/language/expressions/dynamic-import/assign-expr/arrow-function.js index 91dad3ebec..9f79983e6e 100644 --- a/test/language/expressions/dynamic-import/assign-expr/arrow-function.js +++ b/test/language/expressions/dynamic-import/assign-expr/arrow-function.js @@ -22,7 +22,7 @@ features: [dynamic-import] Function.prototype.toString = () => './module-code_FIXTURE.js'; async function fn() { - const ns = await import(() => {}); + const ns = await import(() => {}); // import('./module-code_FIXTURE.js') assert.sameValue(ns.local1, 'Test262'); assert.sameValue(ns.default, 42); diff --git a/test/language/expressions/dynamic-import/assign-expr/await-expr.js b/test/language/expressions/dynamic-import/assign-expr/await-expr.js index c84f2e5e22..998d7f6a36 100644 --- a/test/language/expressions/dynamic-import/assign-expr/await-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/await-expr.js @@ -23,12 +23,12 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(await a); + const ns1 = await import(await a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(await b); + const ns2 = await import(await b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/await-identifier.js b/test/language/expressions/dynamic-import/assign-expr/await-identifier.js index 1715cd70ff..7ceeaa2ce4 100644 --- a/test/language/expressions/dynamic-import/assign-expr/await-identifier.js +++ b/test/language/expressions/dynamic-import/assign-expr/await-identifier.js @@ -21,7 +21,7 @@ features: [dynamic-import] const await = './module-code_FIXTURE.js'; -const getpromise = () => import(await); +const getpromise = () => import(await); // import('./module-code_FIXTURE.js') async function fn() { const ns1 = await getpromise(); diff --git a/test/language/expressions/dynamic-import/assign-expr/call-expr-arguments.js b/test/language/expressions/dynamic-import/assign-expr/call-expr-arguments.js index e5da082d73..408da815c0 100644 --- a/test/language/expressions/dynamic-import/assign-expr/call-expr-arguments.js +++ b/test/language/expressions/dynamic-import/assign-expr/call-expr-arguments.js @@ -31,12 +31,12 @@ const a = () => () => './module-code_FIXTURE.js'; const b = () => () => './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(a()()); + const ns1 = await import(a()()); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(b()()); + const ns2 = await import(b()()); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/call-expr-expr.js b/test/language/expressions/dynamic-import/assign-expr/call-expr-expr.js index a4ab9866e7..12d29ee378 100644 --- a/test/language/expressions/dynamic-import/assign-expr/call-expr-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/call-expr-expr.js @@ -30,12 +30,12 @@ features: [dynamic-import] const a = () => ['./module-code_FIXTURE.js', './module-code-other_FIXTURE.js']; async function fn() { - const ns1 = await import(a()[0]); + const ns1 = await import(a()[0]); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(a()[0, 1]); + const ns2 = await import(a()[0, 1]); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/call-expr-identifier.js b/test/language/expressions/dynamic-import/assign-expr/call-expr-identifier.js index 7e801d8a29..8e0ed7f419 100644 --- a/test/language/expressions/dynamic-import/assign-expr/call-expr-identifier.js +++ b/test/language/expressions/dynamic-import/assign-expr/call-expr-identifier.js @@ -33,12 +33,12 @@ const a = () => ({ }); async function fn() { - const ns1 = await import(a().x); + const ns1 = await import(a().x); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(a().y); + const ns2 = await import(a().y); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/cover-call-expr.js b/test/language/expressions/dynamic-import/assign-expr/cover-call-expr.js index baa8b576c4..46a4b4a90f 100644 --- a/test/language/expressions/dynamic-import/assign-expr/cover-call-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/cover-call-expr.js @@ -31,12 +31,12 @@ const a = () => './module-code_FIXTURE.js'; const b = () => './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(a()); + const ns1 = await import(a()); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(b()); + const ns2 = await import(b()); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/cover-parenthesized-expr.js b/test/language/expressions/dynamic-import/assign-expr/cover-parenthesized-expr.js index 8eefa4f3c4..029c1fff66 100644 --- a/test/language/expressions/dynamic-import/assign-expr/cover-parenthesized-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/cover-parenthesized-expr.js @@ -23,12 +23,12 @@ features: [dynamic-import] ---*/ async function fn() { - const ns1 = await import((((((('./module-code_FIXTURE.js'))))))); + const ns1 = await import((((((('./module-code_FIXTURE.js'))))))); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import((1, 0, './module-code-other_FIXTURE.js')); + const ns2 = await import((1, 0, './module-code-other_FIXTURE.js')); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/identifier.js b/test/language/expressions/dynamic-import/assign-expr/identifier.js index 08692b13e8..00fca55e4d 100644 --- a/test/language/expressions/dynamic-import/assign-expr/identifier.js +++ b/test/language/expressions/dynamic-import/assign-expr/identifier.js @@ -23,12 +23,12 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(a); + const ns1 = await import(a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(b); + const ns2 = await import(b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/lhs-assign-operator-assign-expr.js b/test/language/expressions/dynamic-import/assign-expr/lhs-assign-operator-assign-expr.js index 3f8f1bcfb9..a4ce9102c5 100644 --- a/test/language/expressions/dynamic-import/assign-expr/lhs-assign-operator-assign-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/lhs-assign-operator-assign-expr.js @@ -26,12 +26,12 @@ const a = '_FIXTURE.js'; const b = '-other_FIXTURE.js'; async function fn() { - const ns1 = await import(x += a); + const ns1 = await import(x += a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(y += b); + const ns2 = await import(y += b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/lhs-eq-assign-expr.js b/test/language/expressions/dynamic-import/assign-expr/lhs-eq-assign-expr.js index e293252e4e..e84d42db1d 100644 --- a/test/language/expressions/dynamic-import/assign-expr/lhs-eq-assign-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/lhs-eq-assign-expr.js @@ -28,12 +28,12 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(x = a); + const ns1 = await import(x = a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(y.z = b); + const ns2 = await import(y.z = b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/logical-and-expr.js b/test/language/expressions/dynamic-import/assign-expr/logical-and-expr.js index 3c2adcca92..c3dafff48e 100644 --- a/test/language/expressions/dynamic-import/assign-expr/logical-and-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/logical-and-expr.js @@ -23,13 +23,13 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(b && a); + const ns1 = await import(b && a); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); // mix it in with Unary Expressions - const ns2 = await import(delete void typeof +-~! 0 && b); + const ns2 = await import(delete void typeof +-~! 0 && b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/logical-or-expr.js b/test/language/expressions/dynamic-import/assign-expr/logical-or-expr.js index 0c4dd3e784..ef21597dbe 100644 --- a/test/language/expressions/dynamic-import/assign-expr/logical-or-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/logical-or-expr.js @@ -23,12 +23,12 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(a || b); + const ns1 = await import(a || b); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(false || b); + const ns2 = await import(false || b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/member-expr.js b/test/language/expressions/dynamic-import/assign-expr/member-expr.js index 55021c2d58..dc08539f4d 100644 --- a/test/language/expressions/dynamic-import/assign-expr/member-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/member-expr.js @@ -26,13 +26,13 @@ const obj = { async function fn() { // MemberExpression [ Expression ] - const ns1 = await import(obj['a']); + const ns1 = await import(obj['a']); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); // MemberExpression . IdentifierName - const ns2 = await import(obj.b); + const ns2 = await import(obj.b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/new-target.js b/test/language/expressions/dynamic-import/assign-expr/new-target.js index b2c7dfc1be..c733e34494 100644 --- a/test/language/expressions/dynamic-import/assign-expr/new-target.js +++ b/test/language/expressions/dynamic-import/assign-expr/new-target.js @@ -20,7 +20,7 @@ features: [dynamic-import] ---*/ function ctor() { - return import(new.target); + return import(new.target); // import('./module-code_FIXTURE.js') } ctor.toString = () => './module-code_FIXTURE.js'; diff --git a/test/language/expressions/dynamic-import/assign-expr/object-literal.js b/test/language/expressions/dynamic-import/assign-expr/object-literal.js index 3d746cf940..2da6a88674 100644 --- a/test/language/expressions/dynamic-import/assign-expr/object-literal.js +++ b/test/language/expressions/dynamic-import/assign-expr/object-literal.js @@ -23,13 +23,13 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import({ toString() { return a; } }); + const ns1 = await import({ toString() { return a; } }); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); Object.prototype.toString = () => b; - const ns2 = await import({}); + const ns2 = await import({}); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/tagged-function-call.js b/test/language/expressions/dynamic-import/assign-expr/tagged-function-call.js index 5e54a692c9..5358593582 100644 --- a/test/language/expressions/dynamic-import/assign-expr/tagged-function-call.js +++ b/test/language/expressions/dynamic-import/assign-expr/tagged-function-call.js @@ -19,16 +19,13 @@ flags: [async] features: [dynamic-import] ---*/ -const a = './module-code_FIXTURE.js'; -const b = './module-code-other_FIXTURE.js'; - function tag(arg) { return arg[0]; } async function fn() { // MemberExpression TemplateLiteral - const ns = await import(tag`./module-code-other_FIXTURE.js`); + const ns = await import(tag`./module-code-other_FIXTURE.js`); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns.local1, 'one six one two'); assert.sameValue(ns.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/ternary.js b/test/language/expressions/dynamic-import/assign-expr/ternary.js index cbb7cd66cb..1494ba394d 100644 --- a/test/language/expressions/dynamic-import/assign-expr/ternary.js +++ b/test/language/expressions/dynamic-import/assign-expr/ternary.js @@ -23,12 +23,12 @@ const a = './module-code_FIXTURE.js'; const b = './module-code-other_FIXTURE.js'; async function fn() { - const ns1 = await import(true ? a : b); + const ns1 = await import(true ? a : b); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); - const ns2 = await import(false ? a : b); + const ns2 = await import(false ? a : b); // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/this.js b/test/language/expressions/dynamic-import/assign-expr/this.js index c50cff64b8..09be936788 100644 --- a/test/language/expressions/dynamic-import/assign-expr/this.js +++ b/test/language/expressions/dynamic-import/assign-expr/this.js @@ -23,7 +23,7 @@ features: [dynamic-import] ---*/ async function fn() { - const ns1 = await import(this); + const ns1 = await import(this); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); diff --git a/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js b/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js index 08661ca371..2a87e84ba3 100644 --- a/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/yield-assign-expr.js @@ -30,7 +30,7 @@ async function *fn() { let iter = g(); assert.sameValue(iter.next().value, 42); - const ns1 = await iter.next(a).value; + const ns1 = await iter.next(a).value; // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); @@ -38,7 +38,7 @@ async function *fn() { iter = g(); assert.sameValue(iter.next().value, 42); - const ns2 = await iter.next(b).value; + const ns2 = await iter.next(b).value; // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/yield-expr.js b/test/language/expressions/dynamic-import/assign-expr/yield-expr.js index 4a621fee49..8a4bd35b2e 100644 --- a/test/language/expressions/dynamic-import/assign-expr/yield-expr.js +++ b/test/language/expressions/dynamic-import/assign-expr/yield-expr.js @@ -30,7 +30,7 @@ async function *fn() { let iter = g(); iter.next(); - const ns1 = await iter.next(a).value; + const ns1 = await iter.next(a).value; // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42); @@ -38,7 +38,7 @@ async function *fn() { iter = g(); iter.next(); - const ns2 = await iter.next(b).value; + const ns2 = await iter.next(b).value; // import('./module-code-other_FIXTURE.js') assert.sameValue(ns2.local1, 'one six one two'); assert.sameValue(ns2.default, 1612); diff --git a/test/language/expressions/dynamic-import/assign-expr/yield-identifier.js b/test/language/expressions/dynamic-import/assign-expr/yield-identifier.js index 1cc9799e0a..09c761e225 100644 --- a/test/language/expressions/dynamic-import/assign-expr/yield-identifier.js +++ b/test/language/expressions/dynamic-import/assign-expr/yield-identifier.js @@ -22,7 +22,7 @@ features: [dynamic-import] const yield = './module-code_FIXTURE.js'; async function fn() { - const ns1 = await import(yield); + const ns1 = await import(yield); // import('./module-code_FIXTURE.js') assert.sameValue(ns1.local1, 'Test262'); assert.sameValue(ns1.default, 42);