1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix(runtime/web_worker): populate SnapshotOptions for WebWorker when instantiated without snapshot (#25280)

Fixes #25277
This commit is contained in:
Sʜɪᴍᴜʀᴀ Yū 2024-08-29 11:18:41 +09:00 committed by Luca Casonato
parent 7e142f0167
commit 23383e5a91
No known key found for this signature in database
GPG key ID: 01A83EB62563811F

View file

@ -505,7 +505,13 @@ impl WebWorker {
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(
if options.startup_snapshot.is_some() {
None
} else {
Some(Default::default())
},
),
deno_permissions_web_worker::init_ops_and_esm(
permissions,
enable_testing_features,