mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Add strict equalities in src/core/ps_parser.js
This commit is contained in:
parent
ee371fe6b2
commit
c9fb3e1b6d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue