Skip to content

Commit fad38f8

Browse files
evilpieyurydelendik
authored andcommitted
Update src/fonts.js
One simple thing that came up while looking at the new Octane benchmark.
1 parent da861be commit fad38f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fonts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4100,7 +4100,7 @@ Type1Font.prototype = {
41004100
// charstring changes size - can't cache .length in loop
41014101
for (var i = 0; i < charstring.length; i++) {
41024102
var command = charstring[i];
4103-
if (command.charAt) {
4103+
if (typeof command === 'string') {
41044104
var cmd = map[command];
41054105
assert(cmd, 'Unknow command: ' + command);
41064106

0 commit comments

Comments
 (0)