Skip to content
Prev Previous commit
Next Next commit
use primordial
  • Loading branch information
panva committed Jul 29, 2025
commit 24670db5e80e0ce518c64cdb18064b7cdb93fd5f
3 changes: 2 additions & 1 deletion lib/internal/crypto/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const {
ArrayPrototypeSlice,
ArrayPrototypeUnshift,
ObjectDefineProperties,
ObjectDefineProperty,
ObjectSetPrototypeOf,
Expand Down Expand Up @@ -539,7 +540,7 @@ function encodeLength(length) {
const bytes = [];
let temp = length;
while (temp > 0) {
bytes.unshift(temp & 0xff);
ArrayPrototypeUnshift(bytes, temp & 0xff);
temp >>>= 8;
}

Expand Down