You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run this in the dart VM. It won't complain about the syntax error.
Run this through dart2js. It will complain "expected an expression, but got 'throw'"
What is the expected output? What do you see instead?
I expect both the VM and dart2j to either accept it or reject it. I haven't studied what the language spec says about this case. If that syntax is correct then it is a dart2js bug. If not then vice versa.
Note that the Dart Editor doesn't flag the "throw" as an error.
What version of the product are you using? On what operating system?
Dart Editor version 0.3.2_r17657
Dart SDK version 0.3.2.0_r17657
OSX 10.8.2
The text was updated successfully, but these errors were encountered:
This issue was originally filed by @jptrainor
What steps will reproduce the problem?
aFuture.then(
() { doSomething },
onError: (AsyncError error) => throw new Exception());
What is the expected output? What do you see instead?
I expect both the VM and dart2j to either accept it or reject it. I haven't studied what the language spec says about this case. If that syntax is correct then it is a dart2js bug. If not then vice versa.
Note that the Dart Editor doesn't flag the "throw" as an error.
What version of the product are you using? On what operating system?
Dart Editor version 0.3.2_r17657
Dart SDK version 0.3.2.0_r17657
OSX 10.8.2
The text was updated successfully, but these errors were encountered: