| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
On Windows, most of the POSIX file mode definitions are not available. However, functionally equivalent read/write definitions exists, and `chmod()` can use them. This patch defines two aliases, so that these definintions are issued in `fs.constants`. #41591
|
cc @nodejs/platform-windows @nodejs/libuv |
Sorry, something went wrong.
|
Please note that I do not have a Windows build environment available, and I could not check if this patch added the two definitions to fs.constants; this probably should be added to the tests, but I don't know how to do it. |
Sorry, something went wrong.
On Windows, most of the POSIX file mode definitions are not available. However, functionally equivalent read/write definitions exists, and `chmod()` can use them. This patch defines two aliases, so that these definintions are issued in `fs.constants`. #41591
On Windows, most of the POSIX file mode definitions are not available. However, functionally equivalent read/write definitions exists, and `chmod()` can use them. This patch defines two aliases, so that these definintions are issued in `fs.constants`. refs: #41591
There was a problem hiding this comment.
LGTM with some suggestions.
Sorry, something went wrong.
| assert.ok(fs.constants.S_IRUSR !== undefined); | ||
| assert.ok(fs.constants.S_IWUSR !== undefined); |
There was a problem hiding this comment.
It'd be better to use assert.notStrictEqual() here. The "is windows?" guard is better written as:
if (!common.isWindows)
common.skip('Windows-only test');Although in its current incarnation it's not really Windows-specific. You could just remove the guard altogether and rename the file.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM but could you please get rid of the merge commits? It negatively affects our tooling.
Sorry, something went wrong.
Oops! I thought it is something wrong :-( I'm using VS Code -> Amend. I should have used plain commit, right? |
Sorry, something went wrong.
|
If the mess creates any problems, we can abandon this PR and I can try to create a new one, hopefully cleaner. |
Sorry, something went wrong.
|
Any idea how I managed to break the ASan test? |
Sorry, something went wrong.
|
That looks like a flaky test, not anything caused by this PR. Apropos merge commits: git rebase origin master && git push git@github.com:xpack/node-fork.git +HEAD:S_IWUSR |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
On Windows, most of the POSIX file mode definitions are not available.
However, functionally equivalent read/write definitions exists, and
chmod() can use them. This patch defines two aliases, so that these
definintions are issued in fs.constants.
Fixes: #41591