Skip to content

Commit

Permalink
Switch allowReserved to false for ES > 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Sep 9, 2021
1 parent 70092d0 commit 0ee3909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options.js
Expand Up @@ -87,7 +87,7 @@ export function normalizeOptions(options) {
const sourceType = normalizeSourceType(options.sourceType);
const ranges = options.range === true;
const locations = options.loc === true;
const allowReserved = ecmaVersion === 3 ? "never" : null;
const allowReserved = ecmaVersion === 3 ? "never" : false;

if (sourceType === "module" && ecmaVersion < 6) {
throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
Expand Down

0 comments on commit 0ee3909

Please sign in to comment.