Bug 773115 - Remove unneeded needStrictChecks() call. r=njn

This commit is contained in:
Benjamin Peterson 2012-07-12 19:28:54 -04:00
Родитель 6fb9d88ae3
Коммит 42d29bd0b1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -531,7 +531,7 @@ CheckStrictParameters(JSContext *cx, Parser *parser)
return false; return false;
} }
if (sc->needStrictChecks() && FindKeyword(name->charsZ(), name->length())) { if (FindKeyword(name->charsZ(), name->length())) {
/* /*
* JSOPTION_STRICT is supposed to warn about future keywords, too, * JSOPTION_STRICT is supposed to warn about future keywords, too,
* but we took care of that in the scanner. * but we took care of that in the scanner.