Removing redundant condition.
This commit is contained in:
parent
4621481f00
commit
0d1cff40ec
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user