Commit b2424215 authored by jkummerow's avatar jkummerow Committed by Commit bot

GetKeys(): Revert all-can-read behavior for Object.keys until LayoutTests are fixed

Review URL: https://codereview.chromium.org/1493373003

Cr-Commit-Position: refs/heads/master@{#32592}
parent 23d838f9
......@@ -8191,6 +8191,11 @@ static bool GetKeysFromJSObject(Isolate* isolate, Handle<JSReceiver> receiver,
DCHECK(type == JSReceiver::OWN_ONLY);
filter = static_cast<PropertyFilter>(filter | ONLY_ALL_CAN_READ);
keep_going = false;
// TODO(jkummerow): LayoutTests need adaptation before we can be spec
// compliant.
// Let [[OwnPropertyKeys]] also return an empty list for now.
return false;
}
JSObject::CollectOwnElementKeys(object, accumulator, filter);
......
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