Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: src/preparser.h

Issue 27025002: Fix pre-parsing of 'use strict' directive after string literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-parse-use-strict.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 44bd85c85e2d01070068afa4bb39fe4b972477dd..08766e9160fee303d0805180c2878827db5e54a9 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -444,7 +444,7 @@ class PreParser {
}
bool IsStringLiteral() {
- return code_ != kUnknownStatement;
+ return code_ == kStringLiteralExpressionStatement;
}
bool IsUseStrictLiteral() {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-parse-use-strict.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698