Skip to content

Commit c219109

Browse files
committed
Update c-dependencies/js-compute-runtime/js-compute-builtins.cpp
1 parent 2691463 commit c219109

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,6 +6809,8 @@ bool constructor(JSContext *cx, unsigned argc, Value *vp) {
68096809
CTOR_HEADER("URL", 1);
68106810

68116811
RootedObject urlInstance(cx, JS_NewObjectForConstructor(cx, &class_, args));
6812+
if (!urlInstance)
6813+
return false;
68126814
RootedObject self(cx, create(cx, urlInstance, args.get(0), args.get(1)));
68136815
if (!self)
68146816
return false;

0 commit comments

Comments
 (0)