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

Evaluation order wrong when deferred library not loaded in dart2js #27577

Closed
fsc8000 opened this issue Oct 12, 2016 · 1 comment
Closed

Evaluation order wrong when deferred library not loaded in dart2js #27577

fsc8000 opened this issue Oct 12, 2016 · 1 comment
Assignees

Comments

@fsc8000
Copy link
Contributor

fsc8000 commented Oct 12, 2016

Example:

import 'abc.dart' deferred as abc;

arg() {
  print("aaa");
  return 1234567;
}

main() {
  try {
    new abc.foobar(arg());
  } catch(e) {
    print(e);
  }
}

According to the spec the arguments of the constructor call should be evaluated first before the error is thrown.

@sigmundch
Copy link
Member

Closed now that we resolved to change the evaluation order - see dart-lang/language#3764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants