Conversation
b3edf82 to
3690aaa
Compare
This PR adds support for getresuid and setresuid for js side
3690aaa to
87270fd
Compare
|
It seems like |
|
@nodejs/process @nodejs/libuv Should this be in libuv? |
I don't think so based on similar functionality in |
Co-authored-by: Anna Henningsen <github@addaleax.net>
|
Hi, I think this PR is read to review. |
| process.getgid = credentials.getgid; | ||
| process.getegid = credentials.getegid; | ||
| process.getgroups = credentials.getgroups; | ||
| if (!credentials.isApple) { |
There was a problem hiding this comment.
I'm not a fan of apis that may or may not exist depending on what platform you're on. My preference would be for the method to always be defined but throw a reasonable exception on unsupported platforms.
There was a problem hiding this comment.
I can't think of a similar case out of my head, but probably there are some cases like this when it comes to compatibility with Windows? Maybe this could be handled similarily then?
In general, I also like the idea of a consistent API with reasonable exceptions. 👍
Co-authored-by: James M Snell <jasnell@gmail.com>
This PR aims to support #40556
Test, lint, and build have been added and passed locally.