Skip to content

language/unsorted/flatten_test fails with dart2wasm-linux-chrome (but not with d8) #52631

Closed
@osa1

Description

@osa1

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:

import 'dart:async';

class Derived<T> implements Future<T> {
  noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}

test() async {
  // flatten(Derived<int>) = int
  Future<int> x = (() async => new Derived<int>())();
}

main() {
  test();
}

This fails with a runtime error in d8, but passes in Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart2wasmIssues for the dart2wasm compiler.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions