Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 930342d20b25fffe5e28376bf39f34822bc683d0..1dff71eca2e57b89c792365842c4dea87b3b3a76 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3077,6 +3077,10 @@ MaybeHandle<Object> Object::AddDataProperty(LookupIterator* it, |
// instead. If the prototype is Null, the proxy is detached. |
if (receiver->IsJSGlobalProxy()) return value; |
+ // If the receiver is Indexed Exotic object (currently only typed arrays), |
+ // disallow adding properties with numeric names. |
+ if (it->IsSpecialNumericIndex()) return value; |
+ |
// Possibly migrate to the most up-to-date map that will be able to store |
// |value| under it->name() with |attributes|. |
it->PrepareTransitionToDataProperty(value, attributes, store_mode); |