mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
More nicely truncate args array
This commit is contained in:
parent
3b558229c1
commit
07119364fc
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -721,7 +721,7 @@ var Interpreter = (function() {
|
|||
while (!((obj = parser.getObj()).isEOF())) {
|
||||
if (obj.isCmd()) {
|
||||
this.dispatch(obj, args);
|
||||
args = [ ]; // yuck
|
||||
args.length = 0;
|
||||
} else if (MAX_ARGS == args.length) {
|
||||
this.error("Too many arguments");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue