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:
jkummerow 2015-12-03 14:34:48 -08:00 committed by Commit bot
parent 23d838f91b
commit b24242156b

View File

@ -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);