Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 28e13408b9b42f492fdafc9214c1cc356081917c..427c30d20b196405ea3cc4059cbf0924050d89cb 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -5009,20 +5009,6 @@ RUNTIME_FUNCTION(Runtime_DefineDataPropertyUnchecked) { |
// map. |
if (lookup.IsFound() && |
(attr != lookup.GetAttributes() || lookup.IsPropertyCallbacks())) { |
- // New attributes - normalize to avoid writing to instance descriptor |
- if (js_object->IsJSGlobalProxy()) { |
- // Since the result is a property, the prototype will exist so |
- // we don't have to check for null. |
- PrototypeIterator iter(isolate, js_object); |
- js_object = Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)); |
- } |
- |
- if (attr != lookup.GetAttributes() || |
- (lookup.IsPropertyCallbacks() && |
- !lookup.GetCallbackObject()->IsAccessorInfo())) { |
- JSObject::NormalizeProperties(js_object, CLEAR_INOBJECT_PROPERTIES, 0); |
- } |
- |
// Use IgnoreAttributes version since a readonly property may be |
// overridden and SetProperty does not allow this. |
Handle<Object> result; |