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 ec0f39fae3094342822b7ca64a044f4fb5566e94..ba1397507f49867bfb29ede798a5cabd22551ca6 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 0e0d697630d1735bfce333520505186326969c77..12ae65a44b868e3581900ff713420f196f2a9ecd 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 91dad3ebec19010d560fcff1e6950d5c3eecc65e..9f79983e6e51b6be9f1be08213124b29f69af587 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 c84f2e5e225ab766a7b5b7fdbb237f3f243bded3..998d7f6a36169109c2b1199001ea0124b9d2d2ff 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 1715cd70ff6181b61a7ca5e299a1857661a266e6..7ceeaa2ce4e6be2a518d3dc6713e6335c10e4550 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 e5da082d7389cc212c22b64af7a76ab36543a6d3..408da815c06e2963acacf850e469cee000d6c368 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 a4ab9866e726fecb73f61a6e2cb5639f55b92540..12d29ee378aee341baa6027d4ff4aafee89a8296 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 7e801d8a299209419a77c88e829779f65b50a4b8..8e0ed7f4191bfdf087842366f296700df606b369 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 baa8b576c49396246fff32eba57d9e714d33d7a6..46a4b4a90f297c7d00f46b5d642cd6d90dd63fc4 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 8eefa4f3c464b90fe74b22c7f04088e45bac1a2e..029c1fff66935fd5e8a692fdfd63b5ae9778fe59 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 08692b13e8df5cb56208141fc97833e3ec1ec1db..00fca55e4dfa56fd0538fd3bf923d732ee3fd462 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 3f8f1bcfb917a19402f63e96e84f221b91803cc1..a4ce9102c57f8649aaaa312eb5b7ad93964fd024 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 e293252e4eebd3f5d0233d289d210e69020c0ba0..e84d42db1d8572f07244be94572e2dd85242262a 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 3c2adcca92f36948a34dcb59cd9af814435abd4e..c3dafff48eaee42cd3b7a87fda54944ce2a956ff 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 0c4dd3e784d309262f0b5580f062c1985aa91702..ef21597dbed360ef43a7d121763b2a213ed09f0f 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 55021c2d58e1771c2310bed55a6c7947f2843c2e..dc08539f4d9afc74c60d5ea8e7db94653cd17cb4 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 b2c7dfc1be7d9bc0507e85a03e7d6c59fc1d9c3d..c733e3449447295c753c530f885caeea5a7dd486 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 3d746cf94059e0e6d9a373d3bd3228c88193744c..2da6a886745e4d509aa1ae12e5aed9bf4d01c0f4 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 5e54a692c9fcd5b110cffcb29a3d7780f2e6490f..5358593582b68a4c2f61d7193a4d7d79cc4a2c67 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 cbb7cd66cb911ed602f711f0ee25816a234a5149..1494ba394df5be4fe8a4a26456cb2f84e7778926 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 c50cff64b8b0d799b9b3a6573b9a4f698c809d22..09be936788b7ec0997a0045be000e67769823d5a 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 08661ca3717005226546d97671001661c0143231..2a87e84ba3e1bd24d7827bcdfc49cd592d6ab771 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 4a621fee498400c5c94864b8ecdc71039adc53e1..8a4bd35b2ef71eac2e19005306fd83fe964acbc9 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 1cc9799e0a706dbb11cae06027570dce99eda9b3..09c761e22568d83fa49aee7281078236dc96c784 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);