mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix(runtime/web_worker): populate SnapshotOptions
for WebWorker
when instantiated without snapshot (#25280)
Fixes #25277
This commit is contained in:
parent
01eb017ed4
commit
4f97261a01
1 changed files with 7 additions and 1 deletions
|
@ -506,7 +506,13 @@ impl WebWorker {
|
||||||
ops::signal::deno_signal::init_ops_and_esm(),
|
ops::signal::deno_signal::init_ops_and_esm(),
|
||||||
ops::tty::deno_tty::init_ops_and_esm(),
|
ops::tty::deno_tty::init_ops_and_esm(),
|
||||||
ops::http::deno_http_runtime::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(
|
||||||
|
if options.startup_snapshot.is_some() {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(Default::default())
|
||||||
|
},
|
||||||
|
),
|
||||||
deno_permissions_web_worker::init_ops_and_esm(
|
deno_permissions_web_worker::init_ops_and_esm(
|
||||||
permissions,
|
permissions,
|
||||||
enable_testing_features,
|
enable_testing_features,
|
||||||
|
|
Loading…
Reference in a new issue