diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-03-15 03:01:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 20:01:55 +0100 |
commit | 7286eea75c991dd12cbe5f124f5037a93de1ce43 (patch) | |
tree | 68ac1cc7de9ea3327a924b3d3fd3f3cda9f850ed /runtime/web_worker.rs | |
parent | c8fbf6d38a189bb98496bc843cfab0e0819d1b96 (diff) |
fix(runtime): do not require deno namespace in workers for crypto (#9784)
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index f35b38d3b..2a0f60e21 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -239,6 +239,7 @@ impl WebWorker { options.user_agent.clone(), options.ca_data.clone(), ); + ops::crypto::init(js_runtime, options.seed); if options.use_deno_namespace { ops::fs_events::init(js_runtime); @@ -248,7 +249,6 @@ impl WebWorker { ops::permissions::init(js_runtime); ops::plugin::init(js_runtime); ops::process::init(js_runtime); - ops::crypto::init(js_runtime, options.seed); ops::signal::init(js_runtime); ops::tls::init(js_runtime); ops::tty::init(js_runtime); |