diff --git a/src/core/cff_parser.js b/src/core/cff_parser.js index d454c5bcd..2e31028f5 100644 --- a/src/core/cff_parser.js +++ b/src/core/cff_parser.js @@ -1845,11 +1845,7 @@ class CFFCompiler { } compileTypedArray(data) { - const out = []; - for (let i = 0, ii = data.length; i < ii; ++i) { - out[i] = data[i]; - } - return out; + return Array.from(data); } compileIndex(index, trackers = []) {