Skip to content

process: remove undocumented now argument from emitWarning() - #31643

Merged
Trott merged 1 commit into
nodejs:masterfrom
Trott:hi-2
Feb 8, 2020
Merged

process: remove undocumented now argument from emitWarning()#31643
Trott merged 1 commit into
nodejs:masterfrom
Trott:hi-2

Conversation

@Trott

@TrottTrott commented Feb 5, 2020

Copy link
Copy Markdown
Member

process.emitWarning() "now" option is undocumented and a Boolean trap.
Remove it before people start adopting it.

We only need it in one place internally. Replace it with an
internal-only emitWarningSync() function.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the process Issues and PRs related to the process subsystem. label Feb 5, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Trott

Trott commented Feb 5, 2020

Copy link
Copy Markdown
MemberAuthor

I hope nothing in the ecosystem uses this.

Incidentally, it was added in 16689e3 but it looks like we don't emit the warnings that it was added for anymore. The ES Modules loader is the only thing that needs it, it would seem.

@Trott

Trott commented Feb 5, 2020

Copy link
Copy Markdown
MemberAuthor

@TrottTrott added the semver-major PRs that contain breaking changes and should be released in the next major version. label Feb 5, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadlib/internal/process/warning.js Outdated
@Trott

Trott commented Feb 7, 2020

Copy link
Copy Markdown
MemberAuthor

@nodejs/tsc This could use some reviews.

@nodejs-github-bot

nodejs-github-bot commented Feb 7, 2020

Copy link
Copy Markdown
Collaborator

@mcollinamcollina left a comment

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.

lgtm

@MylesBorinsMylesBorins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM if CITGM is green

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 7, 2020
process.emitWarning() "now" option is undocumented and a Boolean trap.
Remove it before people start adopting it.
We only need it in one place internally. Replace it with an
internal-only emitWarningSync() function.
PR-URL: nodejs#31643
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
@Trott
Trott merged commit 8c18e91 into nodejs:masterFeb 8, 2020
@Trott
Trott deleted the hi-2 branch February 8, 2020 01:39
codebytere added a commit to electron/electron that referenced this pull request Feb 12, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 15, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 18, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 21, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 21, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 24, 2020
codebytere added a commit to electron/electron that referenced this pull request Feb 24, 2020
* chore: bump node in DEPS to v12.16.0
* Fixup asar support setup patch
nodejs/node#30862
* Fixup InternalCallbackScope patch
nodejs/node#30236
* Fixup GN buildfiles patch
nodejs/node#30755
* Fixup low-level hooks patch
nodejs/node#30466
* Fixup globals require patch
nodejs/node#31643
* Fixup process stream patch
nodejs/node#30862
* Fixup js2c modification patch
nodejs/node#30755
* Fixup internal fs override patch
nodejs/node#30610
* Fixup context-aware warn patch
nodejs/node#30336
* Fixup Node.js with ltcg config
nodejs/node#29388
* Fixup oaepLabel patch
nodejs/node#30917
* Remove redundant ESM test patch
nodejs/node#30997
* Remove redundant cli flag patch
nodejs/node#30466
* Update filenames.json
* Remove macro generation in GN build files
nodejs/node#30755
* Fix some compilation errors upstream
* Add uvwasi to deps
nodejs/node#30258
* Fix BoringSSL incompatibilities
* Fixup linked module patch
nodejs/node#30274
* Add missing sources to GN uv build
libuv/libuv#2347
* Patch some uvwasi incompatibilities
* chore: bump Node.js to v12.6.1
* Remove mark_arraybuffer_as_untransferable.patch
nodejs/node#30549
* Fix uvwasi build failure on win
* Fixup --perf-prof cli option error
* Fixup early cjs module loading
* fix: initialize diagnostics properly
nodejs/node#30025
* Disable new esm syntax specs
nodejs/node#30219
* Fixup v8 weakref hook spec
nodejs/node#29874
* Fix async context timer issue
* Disable monkey-patch-main spec
It relies on nodejs/node#29777, and we don't
override prepareStackTrace.
* Disable new tls specs
nodejs/node#23188
We don't support much of TLS owing to schisms between BoringSSL and
OpenSSL.
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
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.processIssues and PRs related to the process subsystem.semver-majorPRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Trott@nodejs-github-bot@mcollina@jasnell@MylesBorins@BridgeAR