Add strict equalities in src/core/ps_parser.js
This commit is contained in:
parent
ee371fe6b2
commit
c9fb3e1b6d
@ -31,7 +31,7 @@ var PostScriptParser = (function PostScriptParserClosure() {
|
|||||||
this.token = this.lexer.getToken();
|
this.token = this.lexer.getToken();
|
||||||
},
|
},
|
||||||
accept: function PostScriptParser_accept(type) {
|
accept: function PostScriptParser_accept(type) {
|
||||||
if (this.token.type == type) {
|
if (this.token.type === type) {
|
||||||
this.nextToken();
|
this.nextToken();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ var PostScriptLexer = (function PostScriptLexerClosure() {
|
|||||||
if (ch === 0x0A || ch === 0x0D) {
|
if (ch === 0x0A || ch === 0x0D) {
|
||||||
comment = false;
|
comment = false;
|
||||||
}
|
}
|
||||||
} else if (ch == 0x25) { // '%'
|
} else if (ch === 0x25) { // '%'
|
||||||
comment = true;
|
comment = true;
|
||||||
} else if (!Lexer.isSpace(ch)) {
|
} else if (!Lexer.isSpace(ch)) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user