diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-03-12 16:17:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 16:17:18 +0100 |
commit | e83ff62ccbe33ad9c19cb9cab9154b6767d6d74b (patch) | |
tree | 9b37e4ff189e3c3aa4b454c9835b892fb0a9723a /runtime/worker.rs | |
parent | 2f9d7c02dc87cfc57a6d37dc27bb0680b9ac7128 (diff) |
chore: split web op crate (#9635)
This commit starts splitting out the deno_web op crate into multiple
smaller crates. This commit splits out WebIDL and URL API, but in the
future I want to split out each spec into its own crate. That means we
will have (in rough order of loading): `webidl`, `dom`, `streams`,
`console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and
`webgpu` crates.
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index e63fdbe18..51fe1dc27 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -127,17 +127,7 @@ impl MainWorker { ops::crypto::init(js_runtime, options.seed); 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_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::url::init(js_runtime); ops::fs_events::init(js_runtime); ops::fs::init(js_runtime); ops::io::init(js_runtime); |