mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict garbage
This commit is contained in:
parent
9a36184dfa
commit
31f081ae17
7 changed files with 93 additions and 18 deletions
|
@ -131,7 +131,7 @@ var Parser = (function ParserClosure() {
|
|||
var stream = lexer.stream;
|
||||
|
||||
// parse dictionary
|
||||
var dict = new Dict();
|
||||
var dict = new Dict(null);
|
||||
while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
|
||||
if (!isName(this.buf1)) {
|
||||
error('Dictionary key must be a name object');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue