summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-28 00:37:03 +0200
committerGitHub <noreply@github.com>2023-04-28 00:37:03 +0200
commit683dbd7f3bdd91c33005b816ad26b82a4343931a (patch)
tree64c6dd9a572e573040022b22575a1043add84fd0 /core/runtime.rs
parent504482dadd4d8cd9e4105d56ed86802906767f39 (diff)
Revert "refactor: don't expose Deno[Deno.internal].core namespace" (#18881)
Also conditionally disabled one test if there's not enough space on device.
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index be777bdf7..d88ddccac 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -478,26 +478,6 @@ impl JsRuntime {
}
}
}
- // Cache bust plain JS (non-ES modules as well)
- #[cfg(feature = "include_js_files_for_snapshotting")]
- if snapshot_options != snapshot_util::SnapshotOptions::None {
- let js_sources = options
- .extensions
- .iter()
- .flat_map(|ext| match ext.get_js_sources() {
- Some(s) => s.to_owned(),
- None => vec![],
- })
- .collect::<Vec<ExtensionFileSource>>();
- for source in js_sources {
- use crate::ExtensionFileSourceCode;
- if let ExtensionFileSourceCode::LoadedFromFsDuringSnapshot(path) =
- &source.code
- {
- println!("cargo:rerun-if-changed={}", path.display())
- }
- }
- }
Rc::new(crate::modules::ExtModuleLoader::new(
options.module_loader,