Skip to content
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

Library: async: extra error is seen in checked mode by onError callback of runZoned #14436

Closed
DartBot opened this issue Oct 25, 2013 · 3 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-invalid Closed as we don't believe the reported issue is generally actionable library-async

Comments

@DartBot
Copy link

DartBot commented Oct 25, 2013

This issue was originally filed by [email protected]


There is a difference in behavior between production and checked modes on the test

co19/src/LibTest/async/Future/catchError_A03_t05

f() {
  new Future.error(1).catchError((x,y,z){});
}

main() {
  asyncStart();
  runZoned(f, onError: (e) {
    asyncEnd();
  });
}

In production mode, one error event happens for callback's function type mismatch (three parameters are not supported).

In checked mode, two error event happen, first for callback's function type mismatch, second for error object '1'.

@floitschG
Copy link
Contributor

Added Area-Library, Library-Async, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Nov 3, 2013

This comment was originally written by [email protected]


This issue can be closed, see co19 issue #651.

@floitschG
Copy link
Contributor

Added Invalid label.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async closed-invalid Closed as we don't believe the reported issue is generally actionable labels Nov 5, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-invalid Closed as we don't believe the reported issue is generally actionable library-async
Projects
None yet
Development

No branches or pull requests

3 participants