Skip to content

Commit bdfaa52

Browse files
committed
test: update sharedarraybuffer test to reflect changes to byteLength()
The new assertion checks of the output of Buffer.byteLength() is equal to the SharedArrayBuffer property byteLength.
1 parent a66a3e0 commit bdfaa52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-buffer-sharedarraybuffer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ arr1[1] = 6000;
2323
arr2[1] = 6000;
2424

2525
assert.deepStrictEqual(arr_buf, ar_buf, 0);
26+
27+
// Checks for calling Buffer.byteLength on a SharedArrayBuffer
28+
29+
assert.strictEqual(Buffer.byteLength(sab), sab.byteLength, 0);

0 commit comments

Comments
 (0)