Skip to content

fs: make fs.promises non-enumerable - #20632

Merged
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:enumerable
May 12, 2018
Merged

fs: make fs.promises non-enumerable#20632
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:enumerable

Conversation

@cjihrig

@cjihrigcjihrig commented May 9, 2018

Copy link
Copy Markdown
Contributor

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-botnodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label May 9, 2018
@jasnell

Copy link
Copy Markdown
Member

Good idea :-)

Comment threadtest/parallel/test-fs-promises.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

@Trott

Copy link
Copy Markdown
Member

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

@TrottTrott 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#20632Fixes: 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:masterMay 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: #20632Fixes: #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>
@addaleaxaddaleax mentioned this pull request May 14, 2018
@jacobheunjacobheun mentioned this pull request May 21, 2018
10 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

12 participants

@cjihrig@jasnell@Trott@ljharb@ChALkeR@danbev@lpinca@TimothyGu@targos@joyeecheung@devsnek@nodejs-github-bot