summaryrefslogtreecommitdiff
path: root/src/isolate.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-23 19:39:31 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-24 14:52:38 -0700
commitfd68f85ce8cfbb036f0bc2c532f423d8ffa78289 (patch)
treedc6ed9f2fad00efdd5ae5468b4abf3631d54bd24 /src/isolate.rs
parent3438dbe3509da8e8674dd803e8ecdc92e30f7d61 (diff)
libdeno: deno_new should take a snapshot parameter.
Diffstat (limited to 'src/isolate.rs')
-rw-r--r--src/isolate.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/isolate.rs b/src/isolate.rs
index 24f9e6adf..df13fca96 100644
--- a/src/isolate.rs
+++ b/src/isolate.rs
@@ -8,6 +8,7 @@ use deno_dir;
use errors::DenoError;
use flags;
use libdeno;
+use snapshot;
use futures::Future;
use libc::c_void;
@@ -109,7 +110,9 @@ impl Isolate {
unsafe { libdeno::deno_init() };
});
- let libdeno_isolate = unsafe { libdeno::deno_new(pre_dispatch) };
+ let libdeno_isolate = unsafe {
+ libdeno::deno_new(snapshot::deno_snapshot.clone(), pre_dispatch)
+ };
// This channel handles sending async messages back to the runtime.
let (tx, rx) = mpsc::channel::<(i32, Buf)>();