More nicely truncate args array
This commit is contained in:
parent
3b558229c1
commit
07119364fc
2
pdf.js
2
pdf.js
@ -721,7 +721,7 @@ var Interpreter = (function() {
|
|||||||
while (!((obj = parser.getObj()).isEOF())) {
|
while (!((obj = parser.getObj()).isEOF())) {
|
||||||
if (obj.isCmd()) {
|
if (obj.isCmd()) {
|
||||||
this.dispatch(obj, args);
|
this.dispatch(obj, args);
|
||||||
args = [ ]; // yuck
|
args.length = 0;
|
||||||
} else if (MAX_ARGS == args.length) {
|
} else if (MAX_ARGS == args.length) {
|
||||||
this.error("Too many arguments");
|
this.error("Too many arguments");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user