Skip to content

JS tokeniser incorrectly tokenises bitwise shifts as comparison #1230

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

Closed
rmccue opened this issue Dec 8, 2016 · 0 comments
Closed

JS tokeniser incorrectly tokenises bitwise shifts as comparison #1230

rmccue opened this issue Dec 8, 2016 · 0 comments

Comments

@rmccue
Copy link
Contributor

rmccue commented Dec 8, 2016

With code like 4 << 2, the JS tokeniser incorrectly makes this into T_LESS_THAN, T_LESS_THAN. This should instead be T_SL. (Ditto for T_SR instead of `T_GREATER_THAN, T_GREATER_THAN.)

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

2 participants