Skip to content

Commit 6813a2d

Browse files
committed
Update c-dependencies/js-compute-runtime/js-compute-builtins.cpp
1 parent 10fd791 commit 6813a2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6742,11 +6742,11 @@ bool searchParams_get(JSContext *cx, unsigned argc, Value *vp) {
67426742
RootedObject params(cx);
67436743
if (params_val.isNullOrUndefined()) {
67446744
JSUrl *url = (JSUrl *)JS::GetReservedSlot(self, Slots::Url).toPrivate();
6745-
RootedObject url_search_params_intance(
6745+
RootedObject url_search_params_instance(
67466746
cx, JS_NewObjectWithGivenProto(cx, &URLSearchParams::class_, URLSearchParams::proto_obj));
6747-
if (!self)
6747+
if (!url_search_params_instance)
67486748
return false;
6749-
params = URLSearchParams::create(cx, url_search_params_intance, url);
6749+
params = URLSearchParams::create(cx, url_search_params_instance, url);
67506750
if (!params)
67516751
return false;
67526752
JS::SetReservedSlot(self, Slots::Params, JS::ObjectValue(*params));

0 commit comments

Comments
 (0)