@@ -824,8 +824,7 @@ to recursively extract fields.
824
824
Lastly, for imports of modules, ESM-integration would need the ESM loader to
825
825
provide a fundamentally new way to parse/decode a module without * also*
826
826
instantiating that module. Since this functionality is also useful for JS,
827
- there is already a proposal to add this to ESM called
828
- [ Evaluator Attributes] ( https://github.com/lucacasonato/proposal-evaluator-attributes ) .
827
+ there is already a proposal to add this to ESM called [ Import Reflection] .
829
828
With this proposal, a module import:
830
829
``` wasm
831
830
(adapter_module
@@ -834,9 +833,10 @@ With this proposal, a module import:
834
833
```
835
834
could be handled by ESM-integration as if loaded by:
836
835
``` js
837
- import M from ' foo' as ' module' ;
836
+ import Foo from " ./ foo.wasm " as " wasm- module" ;
838
837
```
839
- according to the Evaluator Attributes proposal.
838
+ allowing ` Foo ` to be subsequently instantiated via existing JS API functions
839
+ like ` WebAssemby.instantiate() ` .
840
840
841
841
842
842
@@ -848,6 +848,7 @@ according to the Evaluator Attributes proposal.
848
848
[ Interface Types ] : https://github.com/WebAssembly/interface-types
849
849
850
850
[ ESM-integration ] : https://github.com/WebAssembly/esm-integration
851
+ [ Import Reflection ] : https://github.com/tc39-transfer/proposal-import-reflection
851
852
852
853
[ Core Concepts ] : https://webassembly.github.io/spec/core/intro/overview.html#concepts
853
854
[ `typeuse` ] : https://webassembly.github.io/spec/core/text/modules.html#type-uses
0 commit comments