[Wasm] JS exception not caught in async function #55466
Labels
area-dart2wasm
Issues for the dart2wasm compiler.
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-js-interop
Issues that impact all js interop
I think, this issue is caused by a Dart wasm compiler bug.
This source code (a trivial Futter app) should work, but crashes because the exception on the JavaScript side isn't caught in
initialize
. Note that it works ifinitialize
isn't anasync
function. Hence, my guess that the wasm compiler has a problem here.For the JavaScript side, I added this to
index.html
:To compile the Flutter app, I use:
To run it, I use the
httpd
command from the documentation. See that other bug report.My configuration:
Some additional details:
Here's the original exception in Chrome dev tools with "break on exceptions":
Here's the WASM exception handler, I guess:
and here's the stack trace:
The text was updated successfully, but these errors were encountered: