summaryrefslogtreecommitdiff
path: root/deps/v8/src/runtime
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-08-08 03:43:20 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-08-13 12:00:36 +0200
commitc4007f0096e3a1e777faea35a35e849513e33a89 (patch)
treea38d2cea8b50b4b7768e8dbf6f618cd53ff744ae /deps/v8/src/runtime
parent5442c28b651a79c2269bf2b931e81cd553171656 (diff)
downloadandroid-node-v8-c4007f0096e3a1e777faea35a35e849513e33a89.tar.gz
android-node-v8-c4007f0096e3a1e777faea35a35e849513e33a89.tar.bz2
android-node-v8-c4007f0096e3a1e777faea35a35e849513e33a89.zip
deps: backport c608122b from upstream
Original commit message: [api][keys] Allow skipping indices for Proxies with GetPropertyNames Bug: v8:7942 Change-Id: I7b3740b04cbcaa56dc809150900ab8d821b054ce Reviewed-on: https://chromium-review.googlesource.com/1156544 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#54821} PR-URL: https://github.com/nodejs/node/pull/22210 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'deps/v8/src/runtime')
-rw-r--r--deps/v8/src/runtime/runtime-forin.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/v8/src/runtime/runtime-forin.cc b/deps/v8/src/runtime/runtime-forin.cc
index 9193daf9db..58e47f621e 100644
--- a/deps/v8/src/runtime/runtime-forin.cc
+++ b/deps/v8/src/runtime/runtime-forin.cc
@@ -25,8 +25,7 @@ MaybeHandle<HeapObject> Enumerate(Handle<JSReceiver> receiver) {
JSObject::MakePrototypesFast(receiver, kStartAtReceiver, isolate);
FastKeyAccumulator accumulator(isolate, receiver,
KeyCollectionMode::kIncludePrototypes,
- ENUMERABLE_STRINGS);
- accumulator.set_is_for_in(true);
+ ENUMERABLE_STRINGS, true);
// Test if we have an enum cache for {receiver}.
if (!accumulator.is_receiver_simple_enum()) {
Handle<FixedArray> keys;