Skip to content

Commit 225a893

Browse files
authored
fixup! http2: fix setting options before handle exists
1 parent ee288df commit 225a893

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/http2/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const {
1717
ReflectSet,
1818
Set,
1919
Symbol,
20-
TypedArrayPrototypeGetLength,
2120
Uint32Array,
2221
Uint8Array,
2322
} = primordials;
@@ -936,7 +935,7 @@ const validateSettings = hideStackFrames((settings) => {
936935
// Wrap a typed array in a proxy, and allow selectively copying the entries
937936
// that have explicitly been set to another typed array.
938937
function trackAssignmentsTypedArray(typedArray) {
939-
const typedArrayLength = TypedArrayPrototypeGetLength(typedArray);
938+
const typedArrayLength = typedArray.length;
940939
const modifiedEntries = new Uint8Array(typedArrayLength);
941940

942941
function copyAssigned(target) {

0 commit comments

Comments
 (0)