Skip to content

Commit b7d9182

Browse files
author
Phosra
authored
Fix function importing semantics (#65)
* Fix WebAssembly.Function wording * Remove double space
1 parent 6262800 commit b7d9182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/esm-integration/EXAMPLES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When the Wasm module is evaluated, the exported value of the JS module is used i
1111
| global | If the exported value is a `WebAssembly.Global` object, throw an exception if types mismatch, otherwise take that object as the import. Otherwise, if the imported type is `const`, cast the imported value to the appropriate numeric type, and create a new const global to hold the result. Otherwise, throw an exception. |
1212
| memory | Check that the exported value is a `WebAssembly.Memory` object which meets the type imported; use it if so, otherwise, throw an exception |
1313
| table | Check that the exported value is a `WebAssembly.Table` object which meets the type imported; use it if so, otherwise, throw an exception |
14-
| function | If the exported value is a WebAssembly exported function based on the same types, throw an exception if types mismatch, otherwise make use of it. Otherwise, [create a host function](https://webassembly.github.io/spec/js-api/index.html#create-a-host-function) out of the JS function which includes the casts implied by its type. |
14+
| function | If the exported value is a WebAssembly exported function, throw an exception if types mismatch, otherwise make use of it. Otherwise, [create a host function](https://webassembly.github.io/spec/js-api/index.html#create-a-host-function) out of the JS function which includes the casts implied by its type. |
1515

1616
While WebAssembly only has the concept of globals, JS could export either a regular JS value or a `WebAssembly.Global`.
1717

0 commit comments

Comments
 (0)