Commit 92e3d3c8 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Add temporary hack compatible with old delete behavior so we can roll into...

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
parent 84591db1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment