From b4e42953e1d243f2eda20e5be6b845d60b7bf688 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 14 Mar 2022 23:14:15 +0530 Subject: feat(core): codegen ops (#13861) Co-authored-by: Aaron O'Mullan --- runtime/ops/web_worker/sync_fetch.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/ops/web_worker') diff --git a/runtime/ops/web_worker/sync_fetch.rs b/runtime/ops/web_worker/sync_fetch.rs index 76791ded5..464697f94 100644 --- a/runtime/ops/web_worker/sync_fetch.rs +++ b/runtime/ops/web_worker/sync_fetch.rs @@ -4,6 +4,7 @@ use crate::web_worker::WebWorkerInternalHandle; use crate::web_worker::WebWorkerType; use deno_core::error::type_error; use deno_core::error::AnyError; +use deno_core::op; use deno_core::url::Url; use deno_core::OpState; use deno_fetch::data_url::DataUrl; @@ -30,6 +31,7 @@ pub struct SyncFetchScript { script: String, } +#[op] pub fn op_worker_sync_fetch( state: &mut OpState, scripts: Vec, -- cgit v1.2.3