Skip to content

Define the exception type for stack overflows - #875

Merged
gahaas merged 3 commits into
WebAssembly:masterfrom
gahaas:gahaas-stack-overflow
Dec 14, 2016
Merged

gahaas merged 3 commits into
WebAssembly:masterfrom
gahaas:gahaas-stack-overflow

Conversation

@gahaas

@gahaas gahaas commented Nov 16, 2016

Copy link
Copy Markdown
Contributor

This pull request explicitly defines the exception thrown in JavaScript for WebAssembly stack overflows. The changes were discussed in #867.

This pull request explicitly defines the exception thrown in JavaScript for WebAssembly stack overflows. The changes were discussed in WebAssembly#867.
@rossberg

Copy link
Copy Markdown
Member

I think this should become a separate section, because it would no longer be a trap. Also, you'll need to adjust Semantics.md as well.

@rossberg

Copy link
Copy Markdown
Member

Alternatively, you could leave Semantics.md alone and say here that stack overflow is an exception and the only case of a trap that does not map to RuntimeError.

By not calling a stack overflow a trap it is easier to handle them differently than traps in JS.md.
@gahaas

gahaas commented Dec 12, 2016

Copy link
Copy Markdown
Contributor Author

I changed Semantics.md now so that stack overflows are not called traps anymore, and I introduced a separate section in JS.md to define WebAssembly stack overflows.

@rossberg

Copy link
Copy Markdown
Member

lgtm

This was referenced Dec 12, 2016
@gahaas
gahaas merged commit b595bb0 into WebAssembly:master Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants