-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language/unsorted/flatten_test fails with dart2wasm-linux-chrome (but not with d8) #52631
Comments
Another example of a similar failure is the test void main() async {
int? x;
x.noSuchMethod(Invocation.method(#toString, []));
} Currently this test fails as expected in Chrome because it fails with a Wasm trap. When we fix |
One explanation why these tests pass with d8 but fail with Chrome can be that we currently use With https://dart-review.googlesource.com/c/sdk/+/305201 we override d8's |
Note that the compile-time error in 'language/unsorted/flatten_test.dart' isn't relevant for the behavior of the flatten function, so we might want to delete line 36, or we could rewrite it to use a local function with a declared return type rather than a function literal (like the one in line 35). Cf. dart-lang/language#3148, which is an investigation of the compile-time error. Cf. https://dart-review.googlesource.com/309280 which will adjust the test. |
Test landed (note that it was cleaned up quite extensively, but it still covers the same cases, and then some more). It was moved to |
The The tests should be using The issue with test runner not recognizing async tests has been fixed some time ago. |
In order for asynchronous tests to work on the web, they have to tell the test runner that * the test is async * when the async test has finished running This is done via calling asyncStart/asyncEnd. Issue #52631 Issue #55865 Change-Id: I790960d7da708de4e36be9197ceb3e89f316a84e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368581 Reviewed-by: Ömer Ağacan <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
It looks like the runtime errors are not thrown synchronously, and with Chrome the test ends before throwing the exception.
I'm not sure if the test needs
asyncStart
/asyncEnd
or this is a dart2wasm issue.Minimal repro:
This fails with a runtime error in d8, but passes in Chrome.
The text was updated successfully, but these errors were encountered: