Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! ffi: throw on allocation failure in toArrayBuffer()
  • Loading branch information
trivikr committed Sep 30, 2026
commit 1d89180c4544cd56b9f7e04ef9cf2081ee44a69c
3 changes: 2 additions & 1 deletion test/ffi/test-ffi-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ test('ffi rejects unsafe integers as an offset or length', () => {

test('ffi toBuffer and toArrayBuffer throw when the copy cannot be allocated', {
skip: (bufferConstants.MAX_LENGTH < 2 ** 50 && 'requires a 64-bit buffer length limit') ||
(common.isASan && 'ASan aborts on huge allocations'),
(common.isASan && 'ASan aborts on huge allocations') ||
(common.isAIX && 'huge allocations may succeed on AIX and get the process killed'),
}, () => {
// The allocation fails before the source pointer is read.
const error = { code: 'ERR_MEMORY_ALLOCATION_FAILED' };
Expand Down
Loading