summaryrefslogtreecommitdiff
path: root/src/isolate.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-13 16:25:42 -0500
committerGitHub <noreply@github.com>2018-12-13 16:25:42 -0500
commitf986eb25c575747efddcbbcbd8ab429a32312983 (patch)
tree644e550afc88ae370bb0d0eb010b8dff21315156 /src/isolate.rs
parent2cb52cc4d19b212c4a1095ca4f668fe62b237c7a (diff)
Merge deno_new_snapshotter behavior into deno_new (#1318)
Diffstat (limited to 'src/isolate.rs')
-rw-r--r--src/isolate.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/isolate.rs b/src/isolate.rs
index 99e3670f2..2305a62a9 100644
--- a/src/isolate.rs
+++ b/src/isolate.rs
@@ -144,10 +144,12 @@ impl Isolate {
unsafe { libdeno::deno_init() };
});
let config = libdeno::deno_config {
+ will_snapshot: 0,
+ load_snapshot: snapshot,
shared: libdeno::deno_buf::empty(), // TODO Use for message passing.
recv_cb: pre_dispatch,
};
- let libdeno_isolate = unsafe { libdeno::deno_new(snapshot, config) };
+ let libdeno_isolate = unsafe { libdeno::deno_new(config) };
// This channel handles sending async messages back to the runtime.
let (tx, rx) = mpsc::channel::<(i32, Buf)>();