Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index e72abc87de14ecf523fe5d892b694287db3cbc26..1cfd096badbb7abac1cea86b14db11f7937f010a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4185,6 +4185,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)); |