feat(parser): support === and !== operators

Closes #1496

Closes #1500
This commit is contained in:
Pawel Kozlowski
2015-04-22 11:45:33 +02:00
parent 2e3e41ba64
commit afe0e45453
5 changed files with 32 additions and 5 deletions

View File

@ -304,7 +304,7 @@ class _Scanner {
assert(this.peek == StringWrapper.charCodeAt(one, 0));
this.advance();
var str:string = one;
if (this.peek == code) {
while (this.peek == code) {
this.advance();
str += two;
}
@ -461,6 +461,8 @@ var OPERATORS = SetWrapper.createFromList([
'=',
'==',
'!=',
'===',
'!==',
'<',
'>',
'<=',