Skip to content

Commit 9e9adee

Browse files
ronagCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent ef04e22 commit 9e9adee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-buffer-alloc-alignment.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for (const alloc of [Buffer.allocUnsafe, Buffer.allocUnsafeSlow]) {
1717
for (const size of sizes) {
1818
const buf = alloc(size, alignment);
1919
assert.strictEqual(buf.length, size);
20-
assert.strictEqual(buf.byteOffset % alignment, 0);
20+
// Backing store address alignment is not observable from JS; the internal binding CHECKs it.
2121
// The view must fit inside the (over-allocated) ArrayBuffer.
2222
assert.ok(buf.byteOffset + size <= buf.buffer.byteLength);
2323
// The whole buffer must be writable through the aligned view.

0 commit comments

Comments
 (0)