Skip to content

Commit 827ecda

Browse files
authored
refactor: Migrate URL to the builtin class (#422)
* Migrate URLSearchParamsIterator to the builtin class * Move URLSearchParams to the builtin class * Migrate URL to the builtin class
1 parent e17cdfd commit 827ecda

File tree

5 files changed

+275
-261
lines changed

5 files changed

+275
-261
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "builtins/env.h"
1313
#include "builtins/fastly.h"
1414
#include "builtins/logger.h"
15+
#include "builtins/url.h"
1516
#include "geo_ip.h"
1617
#include "host_call.h"
1718

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ bool put(JSContext *cx, unsigned argc, JS::Value *vp) {
308308
} else if (body_obj && JS::IsArrayBufferObject(body_obj)) {
309309
bool is_shared;
310310
JS::GetArrayBufferLengthAndData(body_obj, &length, &is_shared, (uint8_t **)&buf);
311-
} else if (body_obj && URLSearchParams::is_instance(body_obj)) {
312-
jsurl::SpecSlice slice = URLSearchParams::serialize(cx, body_obj);
311+
} else if (body_obj && builtins::URLSearchParams::is_instance(body_obj)) {
312+
jsurl::SpecSlice slice = builtins::URLSearchParams::serialize(cx, body_obj);
313313
buf = (char *)slice.data;
314314
length = slice.len;
315315
} else {

0 commit comments

Comments
 (0)