Add strict equalities in src/core/ps_parser.js

This commit is contained in:
Jonas Jenwald 2014-08-01 22:02:10 +02:00
parent ee371fe6b2
commit c9fb3e1b6d

View File

@ -31,7 +31,7 @@ var PostScriptParser = (function PostScriptParserClosure() {
this.token = this.lexer.getToken();
},
accept: function PostScriptParser_accept(type) {
if (this.token.type == type) {
if (this.token.type === type) {
this.nextToken();
return true;
}
@ -158,7 +158,7 @@ var PostScriptLexer = (function PostScriptLexerClosure() {
if (ch === 0x0A || ch === 0x0D) {
comment = false;
}
} else if (ch == 0x25) { // '%'
} else if (ch === 0x25) { // '%'
comment = true;
} else if (!Lexer.isSpace(ch)) {
break;