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}
This commit is contained in:
parent
23d838f91b
commit
b24242156b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user