Skip to content

Commit 7995725

Browse files
committed
fixup! lib: refactor internal webidl converters
Signed-off-by: Filip Skokan <[email protected]>
1 parent 99b0f1b commit 7995725

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/internal/webidl.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,9 @@ converters.BufferSource = (V, options = kEmptyObject) => {
882882
}
883883

884884
// ArrayBuffer conversion step 3: validate [AllowResizable].
885-
validateBufferSourceBacking(V, options);
885+
// isArrayBuffer(V) already excluded SharedArrayBuffer, so no [AllowShared]
886+
// validation is needed on this branch.
887+
validateAllowResizableArrayBuffer(V, options);
886888

887889
// Step 4: return a reference to the same ArrayBuffer.
888890
return V;

0 commit comments

Comments
 (0)