Skip to content

Commit

Permalink
fixup! http2: fix setting options before handle exists
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed May 13, 2021
1 parent ee288df commit 225a893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/http2/core.js
Expand Up @@ -17,7 +17,6 @@ const {
ReflectSet,
Set,
Symbol,
TypedArrayPrototypeGetLength,
Uint32Array,
Uint8Array,
} = primordials;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 225a893

Please sign in to comment.