Add allowImportExportEverywhere option

Closes #174
This commit is contained in:
Marijn Haverbeke
2014-12-11 14:48:03 +01:00
parent 91e5ac0fdd
commit c989857aa5
3 changed files with 16 additions and 4 deletions

View File

@@ -14138,6 +14138,8 @@ testFail("({ t(eval) { \"use strict\"; } });", "Defining 'eval' in strict mode (
testFail("\"use strict\"; `${test}\\02`;", "Octal literal in strict mode (1:22)", {ecmaVersion: 6});
testFail("if (1) import \"acorn\";", "'import' and 'export' may only appear at the top level (1:7)", {ecmaVersion: 6});
test("[...a, ] = b", {
type: "Program",
loc: {