mirror of https://github.com/tc39/test262.git
33 lines
984 B
JavaScript
33 lines
984 B
JavaScript
// 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 (UnaryExpressions)
|
|
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]
|
|
features: [dynamic-import]
|
|
---*/
|
|
|
|
const obj = {
|
|
prop: 42
|
|
};
|
|
|
|
import(delete obj.prop);
|
|
import(void 0);
|
|
import(typeof {});
|
|
import(+void 0);
|
|
import(-void 0);
|
|
import(!void 0);
|
|
import(~void 0);
|
|
import(delete void typeof +-~! 0);
|