test262/test/language/module-code/dynamic-import/syntax/invalid/top-level-empty-args-early-error.js
2018-10-04 16:16:35 -04:00

27 lines
642 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/dynamic-import/empty-args-early-error.case
// - src/dynamic-import/syntax/invalid/top-level.template
/*---
description: It's a SyntaxError if AssignmentExpression is omitted (top level syntax)
esid: sec-import-call-runtime-semantics-evaluation
features: [dynamic-import]
flags: [generated, module]
negative:
phase: parse
type: SyntaxError
info: |
ImportCall :
import( AssignmentExpression )
ImportCall :
import()
---*/
throw "Test262: This statement should not be evaluated.";
import();
/* The params region intentionally empty */