diff options
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index 1816cdefb..9d376fc0e 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -2,7 +2,7 @@ use crate::error::is_instance_of_error; use crate::error::JsError; -use crate::modules::get_module_type_from_assertions; +use crate::modules::get_asserted_module_type_from_assertions; use crate::modules::parse_import_assertions; use crate::modules::validate_import_assertions; use crate::modules::ImportAssertionsKind; @@ -343,7 +343,8 @@ pub extern "C" fn host_import_module_dynamically_callback( resolver.reject(tc_scope, e); } } - let module_type = get_module_type_from_assertions(&assertions); + let asserted_module_type = + get_asserted_module_type_from_assertions(&assertions); let resolver_handle = v8::Global::new(scope, resolver); { @@ -358,7 +359,7 @@ pub extern "C" fn host_import_module_dynamically_callback( module_map_rc, &specifier_str, &referrer_name_str, - module_type, + asserted_module_type, resolver_handle, ); state_rc.borrow_mut().notify_new_dynamic_import(); |