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

Unified Diff: src/objects.cc

Issue 1821723004: Ensure CreateDataProperty works correctly on TypedArrays (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 7e3a325a6df6c337b5a8b0fc604f8204ff09ce5e..3956383e04723af2b5ed8e90e500a3b30e34df81 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -6688,7 +6688,8 @@ Maybe<bool> JSObject::CreateDataProperty(LookupIterator* it,
Isolate* isolate = receiver->GetIsolate();
if (it->IsFound()) {
- if (!it->IsConfigurable()) {
+ if (it->state() == LookupIterator::INTEGER_INDEXED_EXOTIC ||
adamk 2016/03/21 21:44:01 Why is this needed? DefineOwnPropertyIgnoreAttribu
Dan Ehrenberg 2016/03/21 22:08:43 If there isn't a check here, then IsConfigurable()
Toon Verwaest 2016/03/31 15:08:03 IsConfigurable should not be exposed at all. You n
Dan Ehrenberg 2016/04/04 23:48:06 I guess all of those cases could actually come up
+ !it->IsConfigurable()) {
RETURN_FAILURE(
isolate, should_throw,
NewTypeError(MessageTemplate::kRedefineDisallowed, it->GetName()));
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-596394.js » ('j') | test/mjsunit/regress/regress-crbug-596394.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698