Skip to content

Missing error in VM async do while. #22777

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

Closed
sigurdm opened this issue Mar 11, 2015 · 4 comments
Closed

Missing error in VM async do while. #22777

sigurdm opened this issue Mar 11, 2015 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@sigurdm
Copy link
Contributor

sigurdm commented Mar 11, 2015

main() async {
  do {
    continue;
  } while (await (throw "Error"));
  print("Expected throw");
}

The VM prints:

Expected throw

While it should throw "Error".

@iposva-google
Copy link
Contributor

cc @crelier.
Set owner to @mhausner.
Added Accepted label.

@iposva-google
Copy link
Contributor

Seems like the "continue" is the crucial part here. Without the continue the exception is thrown as expected.

@DartBot
Copy link

DartBot commented Mar 16, 2015

This comment was originally written by @mhausner


Fix is on the way.


Added Started label.

@DartBot
Copy link

DartBot commented Mar 16, 2015

This comment was originally written by @mhausner


Fixed in r44520.


Added Fixed label.

@sigurdm sigurdm added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Mar 16, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

4 participants