Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index db5da6f9f8978ea1818039c3072c434cee523e64..85c4398978c0cd29fe8af9475551308a51d04c69 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3755,7 +3755,7 @@ MaybeLocal<Array> v8::Object::GetPropertyNames(Local<Context> context) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::FixedArray> value; |
has_pending_exception = |
- !i::JSReceiver::GetKeys(self, i::JSReceiver::INCLUDE_PROTOS, |
+ !i::JSReceiver::GetKeys(self, i::KeyCollectionType::INCLUDE_PROTOS, |
i::ENUMERABLE_STRINGS) |
.ToHandle(&value); |
RETURN_ON_FAILED_EXECUTION(Array); |
@@ -3778,9 +3778,10 @@ MaybeLocal<Array> v8::Object::GetOwnPropertyNames(Local<Context> context) { |
PREPARE_FOR_EXECUTION(context, "v8::Object::GetOwnPropertyNames()", Array); |
auto self = Utils::OpenHandle(this); |
i::Handle<i::FixedArray> value; |
- has_pending_exception = !i::JSReceiver::GetKeys(self, i::JSReceiver::OWN_ONLY, |
- i::ENUMERABLE_STRINGS) |
- .ToHandle(&value); |
+ has_pending_exception = |
+ !i::JSReceiver::GetKeys(self, i::KeyCollectionType::OWN_ONLY, |
+ i::ENUMERABLE_STRINGS) |
+ .ToHandle(&value); |
RETURN_ON_FAILED_EXECUTION(Array); |
// Because we use caching to speed up enumeration it is important |
// to never change the result of the basic enumeration function so |