From 42d29bd0b1637911b04448dc898ee07c4d5185d6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 12 Jul 2012 19:28:54 -0400 Subject: [PATCH] Bug 773115 - Remove unneeded needStrictChecks() call. r=njn --- js/src/frontend/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index bde31609c982..1066679db62e 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -531,7 +531,7 @@ CheckStrictParameters(JSContext *cx, Parser *parser) 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, * but we took care of that in the scanner.