From 0d1cff40ec1202e62c134c88edf32b269bb564e5 Mon Sep 17 00:00:00 2001 From: Pablo Cubico Date: Thu, 25 Feb 2016 13:36:06 -0300 Subject: [PATCH] Removing redundant condition. --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {