diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-17 18:09:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 18:09:50 +0200 |
commit | bda937938550a0969588a6878d2fb6d72c17b22d (patch) | |
tree | cad613f3e6ec0dcc545a08e8ec394b599425babd /cli/web_worker.rs | |
parent | 3421f4dbbd5cabb3a0866ebb3b8aeae5b62730ef (diff) |
refactor: move op_resources and op_close to deno_core (#7539)
Moves op_close and op_resources to deno_core::ops and exports them.
Adds serde dependency to deno_core and reexports it.
Moves JS implementation of those ops to Deno.core and reexports them in Deno.
Diffstat (limited to 'cli/web_worker.rs')
-rw-r--r-- | cli/web_worker.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cli/web_worker.rs b/cli/web_worker.rs index 3484a598d..bad017914 100644 --- a/cli/web_worker.rs +++ b/cli/web_worker.rs @@ -117,7 +117,16 @@ impl WebWorker { ops::worker_host::init(&mut web_worker.worker); ops::idna::init(&mut web_worker.worker); ops::io::init(&mut web_worker.worker); - ops::resources::init(&mut web_worker.worker); + ops::reg_json_sync( + &mut web_worker.worker, + "op_close", + deno_core::op_close, + ); + ops::reg_json_sync( + &mut web_worker.worker, + "op_resources", + deno_core::op_resources, + ); ops::errors::init(&mut web_worker.worker); ops::timers::init(&mut web_worker.worker); ops::fetch::init(&mut web_worker.worker); |