diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-10 16:30:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 16:30:50 +0100 |
commit | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (patch) | |
tree | 1a3c4936403dfaeed7c2b4c8711d75ba53ffb72e /runtime/js.rs | |
parent | 0234eb23ddfe0a5ff9402610a2f3bd326c325ec6 (diff) |
refactor: remove snapshotting from deno_runtime (#21794)
Closes https://github.com/denoland/deno/issues/21137
Diffstat (limited to 'runtime/js.rs')
-rw-r--r-- | runtime/js.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/runtime/js.rs b/runtime/js.rs index 97841ffb3..a8384ceac 100644 --- a/runtime/js.rs +++ b/runtime/js.rs @@ -1,22 +1,4 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use deno_core::Snapshot; -use log::debug; - -#[cfg(not(feature = "dont_create_runtime_snapshot"))] -static RUNTIME_SNAPSHOT: &[u8] = - include_bytes!(concat!(env!("OUT_DIR"), "/RUNTIME_SNAPSHOT.bin")); - -pub fn deno_isolate_init() -> Option<Snapshot> { - debug!("Deno isolate init with snapshots."); - #[cfg(not(feature = "dont_create_runtime_snapshot"))] - { - Some(Snapshot::Static(RUNTIME_SNAPSHOT)) - } - #[cfg(feature = "dont_create_runtime_snapshot")] - { - None - } -} #[cfg(not(feature = "include_js_files_for_snapshotting"))] pub static SOURCE_CODE_FOR_99_MAIN_JS: &str = include_str!("js/99_main.js"); |