mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Use a cache to minimize the number of Name objects.
This commit is contained in:
parent
cab5d7b96f
commit
fdb7c218da
8 changed files with 18 additions and 14 deletions
|
@ -72,7 +72,7 @@ describe('util', function() {
|
|||
|
||||
it('handles dictionaries with type check', function() {
|
||||
var dict = new Dict();
|
||||
dict.set('Type', new Name('Page'));
|
||||
dict.set('Type', Name.get('Page'));
|
||||
expect(isDict(dict, 'Page')).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue