]> git.kaiwu.me - njs.git/commit
Tests: improve compatibility with Node.js
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 22 Sep 2026 03:16:38 +0000 (20:16 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 25 Sep 2026 23:00:29 +0000 (16:00 -0700)
commitc3789e2a79379621c06d4af300c9296b2378cd4c
tree9ccfeecea48c9f0cf3c9f258a2cff6b23aad5c09
parentf365b275069f34c5b8a367b94ad785ca0ac55fe7
Tests: improve compatibility with Node.js

Accept RangeError from Buffer.concat() revalidation.
Remove oversized Buffer.from() cases that make Node.js allocate 4 GiB.
Expect empty Buffer.fill() values to fail.
Use fs.rm() for recursive removal under Node.js.
Check non-enumerable fs.Stats date properties directly.
Use distinct readlink fixtures for concurrently run test cases.

Known failures for js_test --binary=node are limited to module
resolution in import and XML module tests for v25.2.1 on linux.
test/buffer.t.js
test/fs/methods.t.mjs
test/fs/rmdir.t.mjs