summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index c30b715e4..68bbe1a5d 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -231,8 +231,8 @@ impl WebWorker {
Some(sender),
options.create_web_worker_cb.clone(),
);
- 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_sync(js_runtime, "op_close", deno_core::op_close);
+ ops::reg_sync(js_runtime, "op_resources", deno_core::op_resources);
ops::url::init(js_runtime);
ops::file::init(
js_runtime,