Describe the bug
Buffer.buffer.transfer() hangs in tests
Note that it doesn't hang in a normal Node script. It only hangs in vitest
Reproduction
- Clone https://github.com/TomerAberbach/vitest-transfer-bug
- Run
pnpm i
- Run
pnpm test
System Info
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 725.66 MB / 32.00 GB
Shell: 4.0.8 - /opt/homebrew/bin/fish
Binaries:
Node: 24.8.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 11.6.0 - /opt/homebrew/bin/npm
pnpm: 10.17.0 - /opt/homebrew/bin/pnpm
bun: 1.2.22 - /opt/homebrew/bin/bun
Browsers:
Chrome: 144.0.7559.133
Edge: 144.0.3719.115
Firefox: 146.0.1
Safari: 17.6
npmPackages:
vitest: ^4.0.18 => 4.0.18
Used Package Manager
pnpm
Validations
Describe the bug
Buffer.buffer.transfer()hangs in testsNote that it doesn't hang in a normal Node script. It only hangs in vitest
Reproduction
pnpm ipnpm testSystem Info
System: OS: macOS 14.6.1 CPU: (10) arm64 Apple M1 Max Memory: 725.66 MB / 32.00 GB Shell: 4.0.8 - /opt/homebrew/bin/fish Binaries: Node: 24.8.0 - /opt/homebrew/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 11.6.0 - /opt/homebrew/bin/npm pnpm: 10.17.0 - /opt/homebrew/bin/pnpm bun: 1.2.22 - /opt/homebrew/bin/bun Browsers: Chrome: 144.0.7559.133 Edge: 144.0.3719.115 Firefox: 146.0.1 Safari: 17.6 npmPackages: vitest: ^4.0.18 => 4.0.18Used Package Manager
pnpm
Validations