From 225a89357c0b2a74f09b43aaadbd44b381e26d3f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 13 May 2021 19:04:07 +0200 Subject: [PATCH] fixup! http2: fix setting options before handle exists --- lib/internal/http2/core.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {