mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +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
|
@ -10,7 +10,7 @@ describe('obj', function() {
|
|||
describe('Name', function() {
|
||||
it('should retain the given name', function() {
|
||||
var givenName = 'Font';
|
||||
var name = new Name(givenName);
|
||||
var name = Name.get(givenName);
|
||||
expect(name.name).toEqual(givenName);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue