Skip to content
Snippets Groups Projects
Commit 4388d5dc authored by Leo Balter's avatar Leo Balter
Browse files

fix valid script code example

parent 3589fa9d
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,9 @@ template: syntax/valid ...@@ -6,9 +6,9 @@ template: syntax/valid
---*/ ---*/
//- setup //- setup
// It is a Syntax Error if ModuleItemList Contains NewTarget // This is still valid in script code, and should not be valid for module code
// This is still valid in script code // https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
new.target; var x; function x() {}
//- import //- import
import('./script-code-valid.js') import('./script-code-valid.js')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment