mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-21 06:27:23 +02:00
Merge pull request #21215 from Snuffleupagus/compileFDSelect-TypedArray-set
Replace a loop with `TypedArray.prototype.set()` in the `compileFDSelect` method
This commit is contained in:
commit
f54f4b606d
@ -1845,9 +1845,7 @@ class CFFCompiler {
|
||||
case 0:
|
||||
out = new Uint8Array(1 + fdSelect.fdSelect.length);
|
||||
out[0] = format;
|
||||
for (i = 0; i < fdSelect.fdSelect.length; i++) {
|
||||
out[i + 1] = fdSelect.fdSelect[i];
|
||||
}
|
||||
out.set(fdSelect.fdSelect, 1);
|
||||
break;
|
||||
case 3:
|
||||
const start = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user