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

Unified Diff: src/parsing/parser.cc

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: fixing typo 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 7e19346592b986a3e6c82a5ddc99d6be0b39ec33..9fb5c9dc584f9abf247f6bbfca44a65c52ca3c39 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4137,7 +4137,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