test262/test/language/expressions/dynamic-import/syntax/invalid/top-level-assignment-expr-n...

26 lines
674 B
JavaScript
Raw Normal View History

2018-08-10 21:14:38 +02:00
// This file was procedurally generated from the following sources:
2018-10-03 19:39:16 +02:00
// - src/dynamic-import/assignment-expr-not-optional.case
2018-10-02 20:59:07 +02:00
// - src/dynamic-import/syntax/invalid/top-level.template
2018-08-10 21:14:38 +02:00
/*---
description: It's a SyntaxError if AssignmentExpression is omitted (top level syntax)
esid: sec-import-call-runtime-semantics-evaluation
features: [dynamic-import]
2018-10-05 19:01:16 +02:00
flags: [generated]
2018-08-10 21:14:38 +02:00
negative:
phase: parse
type: SyntaxError
info: |
ImportCall :
import( AssignmentExpression )
ImportCall :
2018-10-03 19:39:16 +02:00
import( AssignmentExpression[+In, ?Yield] )
2018-08-10 21:14:38 +02:00
---*/
2018-10-02 20:59:07 +02:00
2018-08-10 21:14:38 +02:00
throw "Test262: This statement should not be evaluated.";
import();
/* The params region intentionally empty */