diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-04-09 07:17:19 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-04-09 20:05:47 +0200 |
commit | fe2f3ba88949b467b14f76422400105c4dd52a79 (patch) | |
tree | f33ff252f56f665cb18746062b1919964b6df719 | |
parent | 5a3f3a744559ef60a2367aaf0ded704713909112 (diff) |
Use correct type for `source_bytes` when buiding in check-only mode
-rw-r--r-- | cli/startup_data.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/startup_data.rs b/cli/startup_data.rs index 1a77915e9..62218fdef 100644 --- a/cli/startup_data.rs +++ b/cli/startup_data.rs @@ -8,7 +8,7 @@ pub fn deno_isolate_init() -> StartupData<'static> { let source_bytes = include_bytes!(concat!(env!("GN_OUT_DIR"), "/gen/cli/bundle/main.js")); #[cfg(feature = "check-only")] - let source_bytes = vec![]; + let source_bytes = b""; StartupData::Script(Script { filename: "gen/cli/bundle/main.js", @@ -20,7 +20,7 @@ pub fn deno_isolate_init() -> StartupData<'static> { let data = include_bytes!(concat!(env!("GN_OUT_DIR"), "/gen/cli/snapshot_deno.bin")); #[cfg(any(feature = "check-only", feature = "no-snapshot-init"))] - let data = vec![]; + let data = b""; StartupData::Snapshot(data) } @@ -35,7 +35,7 @@ pub fn compiler_isolate_init() -> StartupData<'static> { "/gen/cli/bundle/compiler.js" )); #[cfg(feature = "check-only")] - let source_bytes = vec![]; + let source_bytes = b""; StartupData::Script(Script { filename: "gen/cli/bundle/compiler.js", @@ -49,7 +49,7 @@ pub fn compiler_isolate_init() -> StartupData<'static> { "/gen/cli/snapshot_compiler.bin" )); #[cfg(any(feature = "check-only", feature = "no-snapshot-init"))] - let data = vec![]; + let data = b""; StartupData::Snapshot(data) } |