Replace the forbidReserved option with an allowReserved option

For consistency with similar options
This commit is contained in:
Marijn Haverbeke
2015-03-12 22:00:45 +01:00
parent ba750b253b
commit 4735ef53ef
3 changed files with 9 additions and 9 deletions

View File

@@ -13871,7 +13871,7 @@ testFail("function hello() {'use strict'; ({ i: 10, s(eval) { } }); }", "Definin
testFail("function a() { \"use strict\"; ({ b(t, t) { } }); }", "Argument name clash in strict mode (1:37)", {ecmaVersion: 6});
testFail("var super", "The keyword 'super' is reserved (1:4)", {ecmaVersion: 6, forbidReserved: true});
testFail("var super", "The keyword 'super' is reserved (1:4)", {ecmaVersion: 6, allowReserved: false});
testFail("var default", "Unexpected token (1:4)", {ecmaVersion: 6});