diff options
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"); |