diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-25 17:43:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 17:43:31 -0400 |
commit | d8714281b40f457420608c7e766fe787609c7afb (patch) | |
tree | f034d9515be1fd12471f94e20b2b068b492fe768 /cli/startup_data.rs | |
parent | 5ae78eb1de378f04d0b9d54842bcb898053467d6 (diff) |
Resolve callback moved from Behavior to mod_instantiate() (#1999)
This simplifies the Behavior trait and makes it more explicit where the
resolve callback is being made.
Also s/StartupScript/Script
Diffstat (limited to 'cli/startup_data.rs')
-rw-r--r-- | cli/startup_data.rs | 6 |
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(), }) |