Skip to content

Conversation

@cohix
Copy link
Contributor

@cohix cohix commented Jan 21, 2022

History: In order to support AssemblyScript's 'abort' handlers, Reactr's handling of Wasm Call errors was updated to take the result of the abort handler over the error from the Wasm runtime... but the consequence of that is when a runtime error happens but no abort handler is there to return a better error (such as in every other language...), the Call error gets clobbered.

This PR fixes that. It'll still prefer the nicer error returned by a registered abort handler, but if none exists, it'll fall back to the error from Call.

@cohix cohix merged commit ad340f7 into main Jan 21, 2022
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.

3 participants