Skip to content

Commit bac799d

Browse files
authored
Merge pull request #59 from takikawa/fix-cycle-examples
Fix examples in cyclic linking cases with value exports from JS
2 parents 21b6b2b + 21b07ce commit bac799d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/esm-integration/EXAMPLES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export {memoryExport} from "./b.wasm";
199199
#### JS exports
200200
| export type | value (not a `WebAssembly.Global`)* | global | memory | table | function |
201201
|-|-------------------------------|--------|--------|-------|----------|
202-
| | `0` if a const import and not in TDZ, otherwise `Error` | `Error` | `Error` | `Error` | snapshot if it is a function declaration, otherwise `Error` |
202+
| | `Error` | `Error` | `Error` | `Error` | snapshot if it is a function declaration, otherwise `Error` |
203203

204204
#### wasm exports
205205
| export type | global | memory | table | function |
@@ -241,7 +241,7 @@ export function functionExport() {
241241
#### JS exports
242242
| export type | value (not a WebAssembly.Global)* | global | memory | table | function |
243243
|-|-------------------------------|--------|--------|-------|----------|
244-
| | `Error` | snapshot | snapshot | snapshot | snapshot |
244+
| | If the value is a Number or BigInt, it will be converted appropriately. Otherwise `Error`. | snapshot | snapshot | snapshot | snapshot |
245245

246246
1. wasm module is parsed
247247
1. JS module is parsed

0 commit comments

Comments
 (0)