Properly fail to parse >== and <== - fixes T2921

This commit is contained in:
Logan Smyth 2016-02-13 10:08:05 -08:00
parent e0a7271ace
commit ce1423d560
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)"
}