Add temporary hack compatible with old delete behavior so we can roll into blink. We'll need to update the broken test.
BUG= R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/483753003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23171 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
84591db11a
commit
92e3d3c85c
@ -5041,6 +5041,12 @@ MaybeHandle<Object> JSObject::DeleteProperty(Handle<JSObject> object,
|
||||
? KEEP_INOBJECT_PROPERTIES
|
||||
: CLEAR_INOBJECT_PROPERTIES;
|
||||
Handle<JSObject> holder = it.GetHolder<JSObject>();
|
||||
// TODO(verwaest): Remove this temporary compatibility hack when blink
|
||||
// tests are updated.
|
||||
if (!holder.is_identical_to(object) &&
|
||||
!(object->IsJSGlobalProxy() && holder->IsJSGlobalObject())) {
|
||||
return it.isolate()->factory()->true_value();
|
||||
}
|
||||
NormalizeProperties(holder, mode, 0);
|
||||
Handle<Object> result =
|
||||
DeleteNormalizedProperty(holder, name, delete_mode);
|
||||
|
Loading…
Reference in New Issue
Block a user