Go to file
Ryan Nowak f5c756c935 Fix dotnet/extensions#8612 JSInterop throws truncated call stack
The fix for this is to use more ExceptionDispatchInfo! Basically
everwhere that we handle an exception is now an EDI. It's easy to pass
these around and they do the right thing as far as perserving the stack
in.

I de-factored this code a little bit to make all of this work, but it's
now pretty unambiguously correct upon inspection.

I started out wanting to get rid of the continue-with because we've
found that pretty error prone overall. However making this method
async-void started to ask more questions than it answered. What happens
if serialization of the exception fails?
\n\nCommit migrated from 0a27fd3ad6
2019-03-28 09:52:15 -07:00
src Fix dotnet/extensions#8612 JSInterop throws truncated call stack 2019-03-28 09:52:15 -07:00