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:
Tim van der Meij 2026-05-03 18:30:18 +02:00 committed by GitHub
commit f54f4b606d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;