diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-04-22 20:24:49 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-04-23 03:35:52 +0200 |
commit | 10a174834e6e59ea055d6098a07b82a3854a2db9 (patch) | |
tree | 36b9a082d4726a3f0f6c474fd48b59cac85fa762 /cli/startup_data.rs | |
parent | c43aaa39960bd1a79b4a3d768b62ea293e0ab79f (diff) |
Upgrade to rusty_v8 v0.4.0 (#4856)
Diffstat (limited to 'cli/startup_data.rs')
-rw-r--r-- | cli/startup_data.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/startup_data.rs b/cli/startup_data.rs index a90a2377d..517165d11 100644 --- a/cli/startup_data.rs +++ b/cli/startup_data.rs @@ -4,6 +4,7 @@ use deno_core::Script; use crate::js::CLI_SNAPSHOT; use crate::js::COMPILER_SNAPSHOT; +use deno_core::Snapshot; use deno_core::StartupData; #[cfg(feature = "no-snapshot-init")] @@ -29,7 +30,7 @@ pub fn deno_isolate_init() -> StartupData<'static> { #[cfg(feature = "check-only")] let data = b""; - StartupData::Snapshot(data) + StartupData::Snapshot(Snapshot::Static(data)) } #[cfg(feature = "no-snapshot-init")] @@ -55,5 +56,5 @@ pub fn compiler_isolate_init() -> StartupData<'static> { #[cfg(feature = "check-only")] let data = b""; - StartupData::Snapshot(data) + StartupData::Snapshot(Snapshot::Static(data)) } |