Skip to content

Commit

Permalink
Fix JsImportObject resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Mar 27, 2022
1 parent a8a3412 commit 97e6995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/src/js/js_import_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl JsImportObject {
/// import_object.get_export("module", "name");
/// ```
pub fn get_export(&self, module: &str, name: &str) -> Option<Export> {
let namespace = js_sys::Reflect::get(&self.object, &name.into()).ok()?;
let namespace = js_sys::Reflect::get(&self.object, &module.into()).ok()?;
let js_export = js_sys::Reflect::get(&namespace, &name.into()).ok()?;
match self
.module_imports
Expand Down

0 comments on commit 97e6995

Please sign in to comment.