mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-03 08:41:01 +02:00
Replace a loop with TypedArray.prototype.set() in the compileFDSelect method
Given that the `fdSelect.fdSelect` data is a regular Array, this code can simplified a tiny bit.
This commit is contained in:
parent
c196fa8196
commit
027671e6dc
@ -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