diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-07-23 21:12:49 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-07-24 01:57:32 +0200 |
commit | 1406961d2b32b6ff9d842e13d2add124b7e3119d (patch) | |
tree | 227956a5c1d83c6eed89f89d8158518484906a0e /core/libdeno.rs | |
parent | e49d1e16ca2fca45e959c1add9b5a1d6866dbb90 (diff) |
Add error handling for dynamic imports to libdeno (#2678)
Diffstat (limited to 'core/libdeno.rs')
-rw-r--r-- | core/libdeno.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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>; |