Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@squaremo
Copy link
Member

V8Worker2 will look for a global called onerror; so load one before
starting.

Also: without intervention, errors that come from the "deferred"
system (when the runtime does something for you and returns the result
later) will have a helpful error message (because we pass it back to
JS), but a meaningless stack trace (because it starts where control
re-enters JS, i.e., at recv). To make it a bit more useful, capture
the stack trace when entering code that asks for a deferred value, and
transplant it to any eventual error.

V8Worker2 will look for a global called `onerror`; so load one before
starting.

Also: without intervention, errors that come from the "deferred"
system (when the runtime does something for you and returns the result
later) will have a helpful error message (because we pass it back to
JS), but a meaningless stack trace (because it starts where control
re-enters JS, i.e., at `recv`). To make it a bit more useful, capture
the stack trace when entering code that asks for a deferred value, and
transplant it to any eventual error.
@squaremo squaremo merged commit 09332bc into master Jan 24, 2019
@squaremo squaremo deleted the stack-traces branch January 24, 2019 15:18
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