Skip to content

Commit 04ebcd6

Browse files
committed
Return value of Object::Set() should not be ignored.
1 parent 8cf7cb0 commit 04ebcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graal-nodejs/src/util-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
431431
for (size_t i = 0; i < vec.size(); ++i) {
432432
if (!ToV8Value(context, vec[i], isolate).ToLocal(&item))
433433
return v8::MaybeLocal<v8::Value>();
434-
array->Set(context, i, item);
434+
array->Set(context, i, item).Check();
435435
}
436436

437437
return handle_scope.Escape(array);

0 commit comments

Comments
 (0)