From 6c698519cdb6d3fdcb561828f0ad52b3e45b114b Mon Sep 17 00:00:00 2001
From: Nicholas Nethercote <nnethercote@mozilla.com>
Date: Wed, 12 Mar 2014 20:49:46 -0700
Subject: [PATCH] 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 370cf58ce..cd8ef2e71 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;
     }