Index: src/keys.cc |
diff --git a/src/keys.cc b/src/keys.cc |
index 17270eb1bede8711201731f3010c02b16a2cb2ed..8b116c85bddd147a14ccbe0108109f243e082256 100644 |
--- a/src/keys.cc |
+++ b/src/keys.cc |
@@ -895,7 +895,12 @@ Maybe<bool> KeyAccumulator::CollectOwnJSProxyTargetKeys( |
// TODO(cbruni): avoid creating another KeyAccumulator |
Handle<FixedArray> keys; |
ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
- isolate_, keys, JSReceiver::OwnPropertyKeys(target), Nothing<bool>()); |
+ isolate_, keys, |
+ KeyAccumulator::GetKeys(target, KeyCollectionMode::kOwnOnly, filter_, |
+ GetKeysConversion::kConvertToString, |
+ filter_proxy_keys_, is_for_in_), |
+ Nothing<bool>()); |
+ bool prev_filter_proxy_keys_ = filter_proxy_keys_; |
NextPrototype(); // Prepare for accumulating keys. |
bool prev_filter_proxy_keys_ = filter_proxy_keys_; |
filter_proxy_keys_ = false; |