Skip to content

Commit

Permalink
Fix URLSearchParams iterator functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Mar 11, 2024
1 parent 46ecc02 commit 56e3e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-rockets-call.md
@@ -0,0 +1,5 @@
---
"nxjs-runtime": patch
---

Fix `URLSearchParams` iterator functions
2 changes: 1 addition & 1 deletion source/url.c
Expand Up @@ -473,7 +473,7 @@ static JSValue nx_url_search_params_init(JSContext *ctx, JSValueConst this_val,

static JSValue nx_url_search_params_iterator(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
{
nx_url_search_params_t *params_data = JS_GetOpaque2(ctx, this_val, nx_url_search_params_class_id);
nx_url_search_params_t *params_data = JS_GetOpaque2(ctx, argv[0], nx_url_search_params_class_id);
if (!params_data)
{
return JS_EXCEPTION;
Expand Down

0 comments on commit 56e3e15

Please sign in to comment.