This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
ExpressionVisitor should throw with better messages #830
Milestone
Comments
May I try this? |
That would be great, Victor! |
vsavkin
added a commit
to vsavkin/angular.dart
that referenced
this issue
Apr 15, 2014
…nexpected token Change the handling of unexpected tokens. Make the parser throw the "is an unexpected token" exception, so ExpressionVisitor won't throw confusing "Can not watch expression containing ';'". Closes dart-archive#830
PR: #905 I looked at AngularJS to see how it addresses this issue, and it does by throwing an error in the parser. So I did it in the same way. |
vsavkin
added a commit
to vsavkin/angular.dart
that referenced
this issue
Apr 15, 2014
…nexpected token Change the handling of unexpected tokens. Make the parser throw the "is an unexpected token" exception, so ExpressionVisitor won't throw confusing "Can not watch expression containing ';'". Closes dart-archive#830
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
<p ng-repeat="i in [1,2] trak by $id">{{ i }}</p>
would throw
Bad state: Can not watch expression containing ';'.
I've noticed this message in several different situation. We should give a better explanation of the issue.
The text was updated successfully, but these errors were encountered: