From b24242156b4461b5b3f3a56b739eb69647d3d794 Mon Sep 17 00:00:00 2001 From: jkummerow Date: Thu, 3 Dec 2015 14:34:48 -0800 Subject: [PATCH] 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} --- src/objects.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/objects.cc b/src/objects.cc index 13b3918332..16f7e6f319 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -8191,6 +8191,11 @@ static bool GetKeysFromJSObject(Isolate* isolate, Handle receiver, DCHECK(type == JSReceiver::OWN_ONLY); filter = static_cast(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);