diff --git a/lib/parse.js b/lib/parse.js index 8c243b43..6e51ae70 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -157,7 +157,7 @@ function is_unicode_connector_punctuation(ch) { function is_identifier(name, strict_mode) { return !RESERVED_WORDS(name) && /^[a-z_$][a-z0-9_$]*$/i.test(name) - && (!strict_mode || strict_mode && !RESERVED_WORDS_STRICT_ONLY(name)); + && (!strict_mode || !RESERVED_WORDS_STRICT_ONLY(name)); }; function is_identifier_start(code) {