olov / ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations
MIT License
2.03k stars 150 forks source link

source code contain like `console.log(011)` will get wrong #255

Closed zhangsanshi closed 7 years ago

zhangsanshi commented 7 years ago

The source code is contain console.log(011) The error is error: couldn't process source due to parse error Then I remove it, It work.

omsmith commented 7 years ago

Are you trying to use an octal literal there? It would be swell if the source parser supported that I suppose, but if you're not actually trying to use octals (the leading 0), then just fix up your integer.

zhangsanshi commented 7 years ago

you are right.