mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
fs: throw fchownSync error from c++
PR-URL: https://github.com/nodejs/node/pull/51075 Refs: https://github.com/nodejs/performance/issues/106 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
9e87091311
commit
3551dc07eb
3 changed files with 7 additions and 11 deletions
|
@ -2051,9 +2051,7 @@ function fchownSync(fd, uid, gid) {
|
|||
validateInteger(uid, 'uid', -1, kMaxUserId);
|
||||
validateInteger(gid, 'gid', -1, kMaxUserId);
|
||||
|
||||
const ctx = {};
|
||||
binding.fchown(fd, uid, gid, undefined, ctx);
|
||||
handleErrorFromBinding(ctx);
|
||||
binding.fchown(fd, uid, gid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue