-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
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