From ac3a2f9f2e683b6f75e862af0b8da5af06ac0d8c Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 2 Apr 2024 12:41:54 -0700 Subject: [PATCH 1/2] readme updates --- README.md | 2 - proposals/esm-integration/README.md | 134 +++++++++++++--------------- 2 files changed, 63 insertions(+), 73 deletions(-) diff --git a/README.md b/README.md index 6e985cf65..c9fb7b2e1 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ The [specifics of the ES Module integration Proposal are found in this subfolder A formatted version of the spec, including this proposal, is available here: [webassembly.github.io/esm-integration](https://webassembly.github.io/esm-integration). -> Note: It is possible to implement the Wasm-ESM integration in two stages. In the first stage only source phase imports of Wasm are supported (`import source fibModule from "./fib.wasm"`). In the second stage, evaluation phase imports would be supported too (`import { fib } from "./fib.wasm"`). If initially implementing just source phase imports, the `GetExportedNames`, `ResolveExport`, `InitializeEnvironment`, and `ExecuteModule` abstract operations can be implemented as abstract operations unconditionally throwing a `SyntaxError` exception. In this case, module fetch and CSP integration is still required to be implemented as specified in this proposal. Implementers are encouraged to ship both stages at once, but it is deemed OK for implementers to initially ship the first stage and then quickly follow up with the second stage, if this aids "time to ship" in implementations. - Original README from upstream repository follows... # spec diff --git a/proposals/esm-integration/README.md b/proposals/esm-integration/README.md index 9f5362273..f5aab4d23 100644 --- a/proposals/esm-integration/README.md +++ b/proposals/esm-integration/README.md @@ -1,12 +1,12 @@ # WebAssembly/ES Module Integration -This page describes WebAssembly as an ES module. With this proposal, WebAssembly may be loaded with a JavaScript `import` statement, or a `