diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index af64a29d62e418..23a3d637651304 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -17,7 +17,6 @@ const { ReflectSet, Set, Symbol, - TypedArrayPrototypeGetLength, Uint32Array, Uint8Array, } = primordials; @@ -936,7 +935,7 @@ const validateSettings = hideStackFrames((settings) => { // Wrap a typed array in a proxy, and allow selectively copying the entries // that have explicitly been set to another typed array. function trackAssignmentsTypedArray(typedArray) { - const typedArrayLength = TypedArrayPrototypeGetLength(typedArray); + const typedArrayLength = typedArray.length; const modifiedEntries = new Uint8Array(typedArrayLength); function copyAssigned(target) {