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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/startup_data.rs b/cli/startup_data.rs
index 5ef74de06..6e636e579 100644
--- a/cli/startup_data.rs
+++ b/cli/startup_data.rs
@@ -13,7 +13,7 @@ pub fn deno_isolate_init() -> StartupData {
StartupData::Script(Script {
filename: "gen/bundle/main.js".to_string(),
- source: std::str::from_utf8(source_bytes).unwrap().to_string(),
+ source: std::str::from_utf8(&source_bytes[..]).unwrap().to_string(),
})
} else {
debug!("Deno isolate init with snapshots.");
@@ -40,7 +40,7 @@ pub fn compiler_isolate_init() -> StartupData {
StartupData::Script(Script {
filename: "gen/bundle/compiler.js".to_string(),
- source: std::str::from_utf8(source_bytes).unwrap().to_string(),
+ source: std::str::from_utf8(&source_bytes[..]).unwrap().to_string(),
})
} else {
debug!("Deno isolate init with snapshots.");