mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Introduce some logical assignment in the src/core/
folder
This commit is contained in:
parent
317abd6d07
commit
d950b91c4e
20 changed files with 62 additions and 103 deletions
|
@ -366,13 +366,10 @@ const getB = (function getBClosure() {
|
|||
}
|
||||
return lut;
|
||||
}
|
||||
const cache = [];
|
||||
const cache = Object.create(null);
|
||||
|
||||
return function (count) {
|
||||
if (!cache[count]) {
|
||||
cache[count] = buildB(count);
|
||||
}
|
||||
return cache[count];
|
||||
return (cache[count] ||= buildB(count));
|
||||
};
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue