summaryrefslogtreecommitdiff
path: root/cli/startup_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/startup_data.rs')
-rw-r--r--cli/startup_data.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/startup_data.rs b/cli/startup_data.rs
index 29ae4db7d..5ef74de06 100644
--- a/cli/startup_data.rs
+++ b/cli/startup_data.rs
@@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use deno_core::deno_buf;
-use deno_core::{StartupData, StartupScript};
+use deno_core::{Script, StartupData};
pub fn deno_isolate_init() -> StartupData {
if cfg!(feature = "no-snapshot-init") {
@@ -11,7 +11,7 @@ pub fn deno_isolate_init() -> StartupData {
#[cfg(feature = "check-only")]
let source_bytes = vec![];
- StartupData::Script(StartupScript {
+ StartupData::Script(Script {
filename: "gen/bundle/main.js".to_string(),
source: std::str::from_utf8(source_bytes).unwrap().to_string(),
})
@@ -38,7 +38,7 @@ pub fn compiler_isolate_init() -> StartupData {
#[cfg(feature = "check-only")]
let source_bytes = vec![];
- StartupData::Script(StartupScript {
+ StartupData::Script(Script {
filename: "gen/bundle/compiler.js".to_string(),
source: std::str::from_utf8(source_bytes).unwrap().to_string(),
})