diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-20 05:00:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 14:00:05 +0100 |
commit | 86450f4e5963f7842973d816c2a7ae622a68b296 (patch) | |
tree | 01d63eef418ca9db7356292ceca699b564bb7077 /runtime/worker.rs | |
parent | 0205cff83413371b6f85454c595ffe7058f44de2 (diff) |
chore: fix `__runtime_js_sources` feature flag (#21265)
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index a3882bf20..e83c8a720 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -380,7 +380,16 @@ impl MainWorker { ops::signal::deno_signal::init_ops_and_esm(), ops::tty::deno_tty::init_ops_and_esm(), ops::http::deno_http_runtime::init_ops_and_esm(), - ops::bootstrap::deno_bootstrap::init_ops_and_esm(None), + ops::bootstrap::deno_bootstrap::init_ops_and_esm({ + #[cfg(feature = "__runtime_js_sources")] + { + Some(Default::default()) + } + #[cfg(not(feature = "__runtime_js_sources"))] + { + None + } + }), deno_permissions_worker::init_ops_and_esm( permissions, enable_testing_features, |