[Pkg-javascript-commits] [pdf.js] 90/246: Add strict equalities in src/core/ps_parser.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit c9fb3e1b6d1c2ea9efe00a0b1ce893d51944be53
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Aug 1 22:02:10 2014 +0200

    Add strict equalities in src/core/ps_parser.js
---
 src/core/ps_parser.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/ps_parser.js b/src/core/ps_parser.js
index 2ce16b9..a49d7d6 100644
--- a/src/core/ps_parser.js
+++ b/src/core/ps_parser.js
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list