Confusing error message from dart2js on 'e || throw x'. #22926
Labels
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
web-dart2js
Code like:
(41 == 42) || throw "x";
gives an error saying:
Error: Expected an expression, but got 'throw'.
41 == 42 || throw "not";
^^^^^
That makes it sound like "throw" is not an expression, where the problem is that it's not a LogicalAndExpression.
The text was updated successfully, but these errors were encountered: