Skip to content

Commit 704bc30

Browse files
committed
[js-api] Mention opaque data requirement
This basically does the "handwaving" we discussed in WebAssembly#218. I think adding a concept of a backing store through backdoors in the core spec is not very feasible, so this is what we can do practically at this point. Hopefully resolves WebAssembly#242.
1 parent a8324bf commit 704bc30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

document/js-api/index.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ This slot holds a [=function address=] relative to the [=surrounding agent=]'s [
10451045
1. Set |i| to |i| + 1.
10461046
1. Let (|store|, |ret|) be the result of [=func_invoke=](|store|, |funcaddr|, |args|).
10471047
1. Note: The expectation is that [=func_invoke=] will be updated to return (|store|, <var ignore>val</var>* | [=error=] | (exception |exntag| |payload| |opaqueData|)).
1048+
1. Note: The core spec does not have a notion of |opaqueData| in itself, but a backing store that serves as |opaqueData| is necessary to complete this step.
10481049
1. Set the [=surrounding agent=]'s [=associated store=] to |store|.
10491050
1. If |ret| is [=error=], throw an exception. This exception should be a WebAssembly {{RuntimeError}} exception, unless otherwise indicated by <a href="#errors">the WebAssembly error mapping</a>.
10501051
1. If |ret| is exception |exntag| |payload| |opaqueData|, then

0 commit comments

Comments
 (0)