Skip to content

Commit 6aa48c5

Browse files
committed
fixup! test: use arrayBuffer.transfer()
1 parent ff11322 commit 6aa48c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/ffi/test-ffi-memory.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ test('ffi rejects detached array buffers and views as pointers', () => {
151151
const typedArray = new Uint8Array(arrayBuffer);
152152
const dataView = new DataView(arrayBuffer);
153153

154-
structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
154+
arrayBuffer.transfer();
155155

156156
assert.throws(() => ffi.exportArrayBuffer(arrayBuffer, 0n, 0), {
157157
code: 'ERR_INVALID_ARG_VALUE',

0 commit comments

Comments
 (0)