summaryrefslogtreecommitdiff
path: root/src/isolate.rs
diff options
context:
space:
mode:
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)>();