Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 62e4372d0e7b579d5fd726becec9fc80aa065ed4..538b657f2fe9937bd2315aba2ac56d3fded14de0 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -312,6 +312,7 @@ static inline MaybeObject* EnsureJSArrayWithWritableFastElements( |
if (!receiver->IsJSArray()) return NULL; |
JSArray* array = JSArray::cast(receiver); |
if (array->map()->is_observed()) return NULL; |
+ if (!array->map()->is_extensible()) return NULL; |
HeapObject* elms = array->elements(); |
Map* map = elms->map(); |
if (map == heap->fixed_array_map()) { |