Removing redundant condition.

This commit is contained in:
Pablo Cubico 2016-02-25 13:36:06 -03:00
parent 4621481f00
commit 0d1cff40ec

View File

@ -157,7 +157,7 @@ function is_unicode_connector_punctuation(ch) {
function is_identifier(name, strict_mode) { function is_identifier(name, strict_mode) {
return !RESERVED_WORDS(name) return !RESERVED_WORDS(name)
&& /^[a-z_$][a-z0-9_$]*$/i.test(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) { function is_identifier_start(code) {