Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 5ff8ccbae5145ce6be6a04848cc6a6ad9fe65f77..79f8247125ecc74eb307e5bad0d3064d9640451d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3458,8 +3458,8 @@ Maybe<bool> v8::Object::Set(v8::Local<v8::Context> context, uint32_t index, |
PREPARE_FOR_EXECUTION_PRIMITIVE(context, "v8::Object::Set()", bool); |
auto self = Utils::OpenHandle(this); |
auto value_obj = Utils::OpenHandle(*value); |
- has_pending_exception = |
- i::JSReceiver::SetElement(self, index, value_obj, i::SLOPPY).is_null(); |
+ has_pending_exception = i::Object::SetElement(isolate, self, index, value_obj, |
+ i::SLOPPY).is_null(); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(true); |
} |