Getting exports from an evaluated module with get_module_namespace always results in null values
Trying to get module exports like the example here
The module is loaded with load_main_module, I call mod_evaluate on the ID returned, then do the below:
But the value returned is always undefined
Js:
Rust:
The module is loaded with load_main_module, I call mod_evaluate on the ID returned, then do the below:
But the value returned is always undefined
Js:
Rust:
GitHub
Allows users to access the namespace object of a module.
Example - Extracting the default export binding of a JavaScript module using deno_core
...
let module_namespace = runtime.get_module_namespa...
Example - Extracting the default export binding of a JavaScript module using deno_core
...
let module_namespace = runtime.get_module_namespa...
