Skip to content

Commit

Permalink
Make how stack trace propagates more abstract
Browse files Browse the repository at this point in the history
This was suggested by @rossberg in
WebAssembly#197 (comment).
  • Loading branch information
aheejin committed Feb 15, 2022
1 parent 3dc715a commit 673af6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proposals/exception-handling/Exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ conventions](https://webassembly.github.io/spec/web-api/index.html#conventions).
When `ExceptionOption` is not provided or it does not contain `traceStack`
entry, `traceStack` is considered `false` by default.

To preserve stack trace info when crossing the JS to Wasm boundary, `Exception`
can internally contain an optional `externref` value containing a stack trace
string, which is propagated when caught by `catch` and rethrown by `rethrow`.
To preserve stack trace info when crossing the JS to Wasm boundary, exceptions
can internally contain a stack trace, which is propagated when caught by `catch`
and rethrown by `rethrow`.

More formally, the added interfaces look like the following:

Expand Down

0 comments on commit 673af6a

Please sign in to comment.