Merge pull request #3356 from loganfsmyth/operator-parse-error

Properly fail to parse >== and <== - fixes T2921
This commit is contained in:
Henry Zhu 2016-02-14 16:15:31 -05:00
commit ef6b54c1d9
3 changed files with 6 additions and 1 deletions

View File

@ -373,7 +373,8 @@ export default class Tokenizer {
}
if (next === 61) {
size = this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2;
// <= | >=
size = 2;
}
return this.finishOp(tt.relational, size);

View File

@ -0,0 +1 @@
a <== b;

View File

@ -0,0 +1,3 @@
{
"throws": "Unexpected token (1:4)"
}