Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions JS.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ function, global, memory and table imports):
* Let `v` be the value of performing [`Get`](http://tc39.github.io/ecma262/#sec-get-o-p)(`v`, `i.export_name`)
* If `i` is a function import:
* If `IsCallable(v)` is `false`, throw a `TypeError`.
* If `v` is a WebAssembly [Exported Function Exotic Object](#exported-function-exotic-objects)
and `v`'s signature does not match `i`'s signature, throw a `TypeError`.
* Otherwise, append an anonymous function to `imports`
which calls `v` by coercing WebAssembly arguments to JavaScript arguments
via [`ToJSValue`](#tojsvalue) and returns the result by coercing
Expand Down