mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
Use correct type for source_bytes
when buiding in check-only mode
This commit is contained in:
parent
5a3f3a7445
commit
fe2f3ba889
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue