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

Unified Diff: src/parsing/parser.cc

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: addressing nits Created 3 years, 9 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/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 7b7a2aeb6a3ac958ec9ce3be1f8fab16d770ccfb..3f86efac7257cc6b84c7b3eeb58b0a1b60ca65a3 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4118,7 +4118,7 @@ void Parser::SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
// Ignore "__proto__" as a name when it's being used to set the [[Prototype]]
// of an object literal.
- if (property->kind() == ObjectLiteralProperty::PROTOTYPE) return;
+ if (property->IsPrototype()) return;
Expression* value = property->value();

Powered by Google App Engine
This is Rietveld 408576698