summaryrefslogtreecommitdiff
path: root/cli/startup_data.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-11 15:18:49 +0200
committerGitHub <noreply@github.com>2020-09-11 15:18:49 +0200
commit0d1f626edd7c574ff0e70438cdb678dcb5c91170 (patch)
tree8d80e4f32ba9535da4c387234b795385ee2f6492 /cli/startup_data.rs
parent7c2e7c660804afca823d60e6496aa853f75db16c (diff)
refactor(core): JsRuntime initialization (#7415)
Removes: - "deno_core::StartupData" - "deno_core::Script" - "deno_core::OwnedScript" Changes to "JsRuntime": - remove "new_with_loader()" - remove "with_heap_limits()" - rename "IsolateOptions" to "RuntimeOptions" and make public - "JsRuntime::new()" takes "RuntimeOptions" as a single param
Diffstat (limited to 'cli/startup_data.rs')
-rw-r--r--cli/startup_data.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/startup_data.rs b/cli/startup_data.rs
deleted file mode 100644
index 1cdfb4188..000000000
--- a/cli/startup_data.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-
-use crate::js::CLI_SNAPSHOT;
-use crate::js::COMPILER_SNAPSHOT;
-use deno_core::Snapshot;
-use deno_core::StartupData;
-
-pub fn deno_isolate_init() -> StartupData<'static> {
- debug!("Deno isolate init with snapshots.");
- let data = CLI_SNAPSHOT;
- StartupData::Snapshot(Snapshot::Static(data))
-}
-
-pub fn compiler_isolate_init() -> StartupData<'static> {
- debug!("Deno isolate init with snapshots.");
- let data = COMPILER_SNAPSHOT;
- StartupData::Snapshot(Snapshot::Static(data))
-}