test262/test/language/module-code/dynamic-import/syntax/invalid/top-level-not-extensible-args.js
2018-10-05 17:17:41 -04:00

28 lines
687 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/dynamic-import/not-extensible-args.case
// - src/dynamic-import/syntax/invalid/top-level.template
/*---
description: ImportCall is not extensible - no arguments list (top level syntax)
esid: sec-import-call-runtime-semantics-evaluation
features: [dynamic-import]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ImportCall :
import( AssignmentExpression )
ImportCall :
import( AssignmentExpression[+In, ?Yield] )
Forbidden Extensions
- ImportCall must not be extended.
---*/
throw "Test262: This statement should not be evaluated.";
import('', '');