br_on_non_null[0] expected subtype of ((ref null any), (ref null extern) or (ref null func)), found f64.const of type f64. #59840
Labels
area-dart2wasm
Issues for the dart2wasm compiler.
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
Uh oh!
There was an error while loading. Please reload this page.
Crash
I found the following crash when running some code in Wasm:
Repro
Here's a minimal repro test:
Run with:
$ dart test --platform=chrome --compiler=dart2wasm
Logs
The crash yields the following stack trace (most of it is unrelated to the failure, which is not great for debugging):
I'd expect my code to work. It works normally with
--compiler dart2js
.Versions:
Dart
Chrome
Workarounds
The following workarounds can be used to mitigate this issue:
assert
call, orother
so we don't needother!
I guess the
assert
is promoting bothsomething
andother
to non-null, but the Dart analysis isn't?The text was updated successfully, but these errors were encountered: