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

Unified Diff: src/objects.cc

Issue 1746323002: Ensure the @@species protector is updated for accessors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Apply Toon's suggestion Created 4 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
« no previous file with comments | « no previous file | test/mjsunit/harmony/array-species-constructor-accessor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 114e8d940dff3f1aa8f75b6a2c12d6cbf57a11e8..d669943db93f727b62d4304b17357cc9df53a36c 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -8970,6 +8970,8 @@ MaybeHandle<Object> JSObject::DefineAccessor(LookupIterator* it,
PropertyAttributes attributes) {
Isolate* isolate = it->isolate();
+ it->UpdateProtector();
+
if (it->state() == LookupIterator::ACCESS_CHECK) {
if (!it->HasAccess()) {
isolate->ReportFailedAccessCheck(it->GetHolder<JSObject>());
« no previous file with comments | « no previous file | test/mjsunit/harmony/array-species-constructor-accessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698