mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
chore: fix __runtime_js_sources
feature flag (#21265)
This commit is contained in:
parent
0205cff834
commit
86450f4e59
2 changed files with 11 additions and 2 deletions
|
@ -29,7 +29,7 @@ deno_core::extension!(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize, Default)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct SnapshotOptions {
|
pub struct SnapshotOptions {
|
||||||
pub deno_version: String,
|
pub deno_version: String,
|
||||||
|
|
|
@ -380,7 +380,16 @@ impl MainWorker {
|
||||||
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({
|
||||||
|
#[cfg(feature = "__runtime_js_sources")]
|
||||||
|
{
|
||||||
|
Some(Default::default())
|
||||||
|
}
|
||||||
|
#[cfg(not(feature = "__runtime_js_sources"))]
|
||||||
|
{
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}),
|
||||||
deno_permissions_worker::init_ops_and_esm(
|
deno_permissions_worker::init_ops_and_esm(
|
||||||
permissions,
|
permissions,
|
||||||
enable_testing_features,
|
enable_testing_features,
|
||||||
|
|
Loading…
Reference in a new issue