Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Remove support for ~ and ^
Browse files Browse the repository at this point in the history
Since we don't have & nor | we might as well remove the other bitwise
operators too.

BUG=None
R=rafaelw@chromium.org

Review URL: https://codereview.appspot.com/14419067
  • Loading branch information
arv committed Oct 15, 2013
1 parent fe23561 commit 1466486
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions third_party/esprima/esprima.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@
case 93: // ]
case 58: // :
case 63: // ?
case 126: // ~
++index;
return {
type: Token.Punctuator,
Expand All @@ -243,8 +242,6 @@
case 47: // /
case 60: // <
case 62: // >
// Binary operators are not supported.
// case 94: // ^
case 124: // |
index += 2;
return {
Expand Down

0 comments on commit 1466486

Please sign in to comment.