mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Update src/fonts.js
One simple thing that came up while looking at the new Octane benchmark.
This commit is contained in:
parent
da861bef30
commit
fad38f8286
1 changed files with 1 additions and 1 deletions
|
@ -4100,7 +4100,7 @@ Type1Font.prototype = {
|
|||
// charstring changes size - can't cache .length in loop
|
||||
for (var i = 0; i < charstring.length; i++) {
|
||||
var command = charstring[i];
|
||||
if (command.charAt) {
|
||||
if (typeof command === 'string') {
|
||||
var cmd = map[command];
|
||||
assert(cmd, 'Unknow command: ' + command);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue