Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index a4e047c9b64a6b9c66c8618a3376f9a5ba12e540..57902941405b94136c7d1647a85f3652ef8dc13a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4121,6 +4121,14 @@ Maybe<bool> v8::Object::HasOwnProperty(Local<Context> context, |
return result; |
} |
+Maybe<bool> v8::Object::HasOwnProperty(Local<Context> context, uint32_t index) { |
+ PREPARE_FOR_EXECUTION_PRIMITIVE(context, Object, HasOwnProperty, bool); |
+ auto self = Utils::OpenHandle(this); |
+ auto result = i::JSReceiver::HasOwnProperty(self, index); |
+ has_pending_exception = result.IsNothing(); |
+ RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
+ return result; |
+} |
bool v8::Object::HasOwnProperty(Local<String> key) { |
auto context = ContextFromHeapObject(Utils::OpenHandle(this)); |