top-level-script-code-valid.js (666B)
1 // This file was procedurally generated from the following sources: 2 // - src/dynamic-import/script-code-valid.case 3 // - src/dynamic-import/syntax/valid/top-level.template 4 /*--- 5 description: import() can be used in script code (top level syntax) 6 esid: sec-import-call-runtime-semantics-evaluation 7 features: [dynamic-import] 8 flags: [generated] 9 info: | 10 ImportCall : 11 import( AssignmentExpression ) 12 13 ---*/ 14 // This is still valid in script code, and should not be valid for module code 15 // https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames 16 var smoosh; function smoosh() {} 17 18 19 import('./empty_FIXTURE.js'); 20 21 reportCompare(0, 0);