From 1406961d2b32b6ff9d842e13d2add124b7e3119d Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 23 Jul 2019 21:12:49 +0200 Subject: Add error handling for dynamic imports to libdeno (#2678) --- core/libdeno.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/libdeno.rs') diff --git a/core/libdeno.rs b/core/libdeno.rs index 84f21e89e..c402d8754 100644 --- a/core/libdeno.rs +++ b/core/libdeno.rs @@ -193,7 +193,7 @@ type deno_recv_cb = unsafe extern "C" fn( ); /// Called when dynamic import is called in JS: import('foo') -/// Embedder must call deno_dyn_import() with the specified id and +/// Embedder must call deno_dyn_import_done() with the specified id and /// the module. #[allow(non_camel_case_types)] type deno_dyn_import_cb = unsafe extern "C" fn( @@ -308,11 +308,12 @@ extern "C" { ); /// Call exactly once for every deno_dyn_import_cb. - pub fn deno_dyn_import( + pub fn deno_dyn_import_done( i: *const isolate, user_data: *const c_void, id: deno_dyn_import_id, mod_id: deno_mod, + error_str: *const c_char, ); pub fn deno_snapshot_new(i: *const isolate) -> Snapshot1<'static>; -- cgit v1.2.3