Skip to content
Snippets Groups Projects
Commit 39369501 authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Fix test previously invalid for strict mode

parent fc250a31
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Dynamic Import receives an AssignmentExpression (LHS Expr = AssignmentExpression)
Using a frozen object property
esid: prod-ImportCall
info: |
ImportCall [Yield]:
import ( AssignmentExpression[+In, ?Yield] )
AssignmentExpression[In, Yield, Await]:
ConditionalExpression[?In, ?Yield, ?Await]
[+Yield]YieldExpression[?In, ?Await]
ArrowFunction[?In, ?Yield, ?Await]
AsyncArrowFunction[?In, ?Yield, ?Await]
LeftHandSideExpression[?Yield, ?Await] = AssignmentExpression[?In, ?Yield, ?Await]
LeftHandSideExpression[?Yield, ?Await] AssignmentOperator AssignmentExpression[?In, ?Yield, ?Await]
flags: [async, noStrict]
features: [dynamic-import]
---*/
const y = {
z: 0
};
Object.freeze(y);
const b = './module-code-other_FIXTURE.js';
async function fn() {
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);
}
fn().then($DONE, $DONE).catch($DONE);
......@@ -23,7 +23,6 @@ let x = 'foo';
const y = {
z: 0
};
Object.freeze(y);
const a = './module-code_FIXTURE.js';
const b = './module-code-other_FIXTURE.js';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment