[Pkg-javascript-commits] [pdf.js] 44/161: Avoid allocations in executeCommand().

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:22 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 6c698519cdb6d3fdcb561828f0ad52b3e45b114b
Author: Nicholas Nethercote <nnethercote at mozilla.com>
Date:   Wed Mar 12 20:49:46 2014 -0700

    Avoid allocations in executeCommand().
---
 src/core/fonts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index 370cf58..cd8ef2e 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -4779,7 +4779,7 @@ var Type1CharString = (function Type1CharStringClosure() {
       if (keepStack) {
         this.stack.splice(start, howManyArgs);
       } else {
-        this.stack = [];
+        this.stack.length = 0;
       }
       return false;
     }

-- 
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