Skip to content
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

Merged
merged 1 commit into from
May 12, 2018
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented May 9, 2018

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label May 9, 2018
@jasnell
Copy link
Member

jasnell commented May 9, 2018

Good idea :-)

@@ -38,6 +39,8 @@ const tmpDir = tmpdir.path;

common.crashOnUnhandledRejection();

assert.strictEqual(Object.keys(fs).includes('promises'), false);

Copy link
Member

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.

@cjihrig
Copy link
Contributor Author

cjihrig commented May 10, 2018

@Trott
Copy link
Member

Trott commented May 11, 2018

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

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 11, 2018
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>
@cjihrig cjihrig merged commit 20509eb into nodejs:master May 12, 2018
@cjihrig cjihrig deleted the enumerable branch May 12, 2018 02:19
targos pushed a commit that referenced this pull request May 12, 2018
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>
@addaleax addaleax mentioned this pull request May 14, 2018
@jacobheun jacobheun mentioned this pull request May 21, 2018
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet