summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/isolate.rs4
-rw-r--r--src/libdeno.rs4
2 files changed, 6 insertions, 2 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)>();
diff --git a/src/libdeno.rs b/src/libdeno.rs
index cbc074f1b..cce6c4e60 100644
--- a/src/libdeno.rs
+++ b/src/libdeno.rs
@@ -111,6 +111,8 @@ type DenoRecvCb = unsafe extern "C" fn(
#[repr(C)]
pub struct deno_config {
+ pub will_snapshot: c_int,
+ pub load_snapshot: deno_buf,
pub shared: deno_buf,
pub recv_cb: DenoRecvCb,
}
@@ -119,7 +121,7 @@ extern "C" {
pub fn deno_init();
pub fn deno_v8_version() -> *const c_char;
pub fn deno_set_v8_flags(argc: *mut c_int, argv: *mut *mut c_char);
- pub fn deno_new(snapshot: deno_buf, config: deno_config) -> *const isolate;
+ pub fn deno_new(config: deno_config) -> *const isolate;
pub fn deno_delete(i: *const isolate);
pub fn deno_last_exception(i: *const isolate) -> *const c_char;
pub fn deno_check_promise_errors(i: *const isolate);