Skip to content

fix(ext/node): accept all TypedArrays in spawnSync input option#32712

Merged
fraidev merged 1 commit intodenoland:mainfrom
fraidev:fix/child-process-spawnsync-input-typedarray
Mar 14, 2026
Merged

fix(ext/node): accept all TypedArrays in spawnSync input option#32712
fraidev merged 1 commit intodenoland:mainfrom
fraidev:fix/child-process-spawnsync-input-typedarray

Conversation

@fraidev
Copy link
Copy Markdown
Contributor

@fraidev fraidev commented Mar 14, 2026

normalizeInput only accepted Uint8Array and DataView, rejecting other TypedArrays like Int8Array. Node.js accepts any TypedArray.

Replaced the separate instanceof Uint8Array and instanceof DataView checks with a single ArrayBuffer.isView() that covers all TypedArray subtypes and DataView.

`normalizeInput` only accepted `Uint8Array` and `DataView`, rejecting
other TypedArrays like `Int8Array`. Node.js accepts any TypedArray.

Replaced the separate `instanceof Uint8Array` and `instanceof DataView`
checks with a single `ArrayBuffer.isView()` that covers all TypedArray
subtypes and DataView.
@fraidev fraidev merged commit 7cc2464 into denoland:main Mar 14, 2026
112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants