summaryrefslogtreecommitdiff
path: root/core/bindings.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-26 19:00:10 +0200
committerGitHub <noreply@github.com>2020-04-26 19:00:10 +0200
commitf7d1f82796ac49c43d5a0075f86cfd8f83d83889 (patch)
tree1a5dc3366aaf862f17ae33f3d68d1fdb23948eff /core/bindings.rs
parentfe6a6704541563bcc3b7cff03359356bb88a560c (diff)
core: add id field to RecursiveModuleLoad (#4905)
This commit unifies handling of ids for main module/dynamic import loads in EsIsolate.
Diffstat (limited to 'core/bindings.rs')
-rw-r--r--core/bindings.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/bindings.rs b/core/bindings.rs
index 25272af84..a081cccda 100644
--- a/core/bindings.rs
+++ b/core/bindings.rs
@@ -277,13 +277,11 @@ pub extern "C" fn host_import_module_dynamically_callback(
let mut resolver_handle = v8::Global::new();
resolver_handle.set(scope, resolver);
- let import_id = core_isolate.next_dyn_import_id;
- core_isolate.next_dyn_import_id += 1;
- core_isolate
- .dyn_import_map
- .insert(import_id, resolver_handle);
-
- core_isolate.dyn_import_cb(&specifier_str, &referrer_name_str, import_id);
+ core_isolate.dyn_import_cb(
+ resolver_handle,
+ &specifier_str,
+ &referrer_name_str,
+ );
&mut *scope.escape(promise)
}