Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 461c3f5fab9b1280bfad66ceb52c831d8d2ad469..274c34ddebaf24283d1f0d1d21a5f9217dc469d2 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -873,7 +873,7 @@ OptimizedObjectForAddingMultipleProperties(Handle<JSObject> object, |
int expected_additional_properties, |
bool condition) { |
object_ = object; |
- if (condition && object_->HasFastProperties()) { |
+ if (condition && object_->HasFastProperties() && !object->IsJSGlobalProxy()) { |
// Normalize the properties of object to avoid n^2 behavior |
// when extending the object multiple properties. Indicate the number of |
// properties to be added. |