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

Unified Diff: src/parser.h

Issue 1070633002: [strong] Implement static restrictions on binding/assignment to 'undefined' identifier. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: improve tests (rebase, only undefined.js has changed) Created 5 years, 8 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
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index c8fb5611fee2a01a478023bce34946b7e916c38e..8cb6b1697e0e6ebef2a124e9e678abe9b5188e64 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -569,6 +569,7 @@ class ParserTraits {
bool IsEval(const AstRawString* identifier) const;
bool IsArguments(const AstRawString* identifier) const;
bool IsEvalOrArguments(const AstRawString* identifier) const;
+ bool IsUndefined(const AstRawString* identifier) const;
V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const;
// Returns true if the expression is of type "this.foo".
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | test/mjsunit/strong/undefined.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698