Files
bun.sh/test/js/node
Claude Bot a2d0d9dac1 fix: Support options object in fs.writeSync
This commit adds support for passing options as an object to fs.writeSync,
matching Node.js behavior. Previously, Bun only supported positional
parameters (fd, buffer, offset, length, position). Now it also accepts:

fs.writeSync(fd, buffer, { offset, length, position })

The fix properly validates the options and throws ERR_OUT_OF_RANGE when
offset or length values exceed the buffer bounds.

Fixes the test-fs-write-sync-optional-params.js Node.js test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 14:31:53 +00:00
..
2025-08-27 06:39:11 -07:00
2025-09-27 00:27:23 -07:00
2025-09-11 17:53:06 -07:00