### Version 24.3 ### Platform ```text Darwin kt3k-mac-2.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64 ``` ### Subsystem fs ### What steps will reproduce the bug? Run ```js import fs from "node:fs"; fs.chown("foo", -1, 501, console.log); ``` ### How often does it reproduce? Is there a required condition? always ### What is the expected behavior? Why is that the expected behavior? does not crash ### What do you see instead? crashes ### Additional information This didn't happen with Node 24.2
Activity
bnoordhuis commentedon Jun 25, 2025
Define "crashes", please.
kt3k commentedon Jun 25, 2025
I meant it prints the error on C++ side, which can't be handled in JavaScript, and exits the program immediately.
kt3k commentedon Jun 25, 2025
This change seems related #57931
It asserts
CHECK(value->IsUint32())for uid and gid.himself65 commentedon Jun 25, 2025
I can see the failure here on 24.3.0
himself65 commentedon Jun 25, 2025
im working on this
fs: special input `-1` on `chown`, `lchown` and `fchown`
fs: special input `-1` on `chown`, `lchown` and `fchown`
fs: special input `-1` on `chown`, `lchown` and `fchown`
fs: special input `-1` on `chown`, `lchown` and `fchown`