-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs: make fs.promises non-enumerable #20632
Conversation
Good idea :-) |
test/parallel/test-fs-promises.js
Outdated
@@ -38,6 +39,8 @@ const tmpDir = tmpdir.path; | |||
|
|||
common.crashOnUnhandledRejection(); | |||
|
|||
assert.strictEqual(Object.keys(fs).includes('promises'), false); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment noting that this is needed only while and because .promises
is experimental might help for future maintenance.
Tried to do a Linux CI re-run, but it wouldn't restart. node-test-commit-linux has been having odd problems lately and has been failing more than not. /cc @nodejs/build |
This prevents the experimental feature warning from being emitted in cases where fs.promises is not actually used. PR-URL: nodejs#20632 Fixes: nodejs#20504 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This prevents the experimental feature warning from being emitted in cases where fs.promises is not actually used. PR-URL: #20632 Fixes: #20504 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This prevents the experimental feature warning from being emitted in cases where
fs.promises
is not actually used.Fixes: #20504
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes