summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-03-02 01:30:24 +0000
committerGitHub <noreply@github.com>2021-03-02 02:30:24 +0100
commitbadc88b78a623d66ae86157d44a438c14dd7616a (patch)
treee06e4c6985c7721441e5857f72ec527f4100a816 /runtime/web_worker.rs
parent62f33e3b146da2f4264d6fa71409516de892bdf3 (diff)
refactor(op_crates/web): Move URL parsing to Rust (#9276)
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 7f258b3eb..30869ff41 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -231,10 +231,16 @@ impl WebWorker {
);
ops::reg_json_sync(js_runtime, "op_close", deno_core::op_close);
ops::reg_json_sync(js_runtime, "op_resources", deno_core::op_resources);
+ ops::reg_json_sync(js_runtime, "op_parse_url", deno_web::op_parse_url);
ops::reg_json_sync(
js_runtime,
- "op_domain_to_ascii",
- deno_web::op_domain_to_ascii,
+ "op_parse_url_search_params",
+ deno_web::op_parse_url_search_params,
+ );
+ ops::reg_json_sync(
+ js_runtime,
+ "op_stringify_url_search_params",
+ deno_web::op_stringify_url_search_params,
);
ops::io::init(js_runtime);
ops::webgpu::init(js_runtime);