legendecas
9b5aa8d99e
build: override python executable path on configure
...
PR-URL: https://github.com/nodejs/node/pull/39465
Fixes: https://github.com/nodejs/node/issues/39408
Fixes: https://github.com/nodejs/node/issues/39456
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2021-07-30 01:20:00 +08:00
Richard Lau
bd33fdfadf
2021-07-29, Version 14.17.4 'Fermium' (LTS)
...
This is a security release.
Notable Changes:
- CVE-2021-22930: Use after free on close http2 on stream canceling (High)
This releases fixes some regressions with internationalization
introduced by the ICU updates in Node.js 14.17.0 and 14.17.1.
PR-URL: https://github.com/nodejs/node/pull/39466
2021-07-29 12:40:58 -04:00
Richard Lau
9b4199450e
2021-07-29, Version 12.22.4 'Erbium' (LTS)
...
This is a security release.
Notable changes:
- CVE-2021-22930: Use after free on close http2 on stream canceling (High)
PR-URL: https://github.com/nodejs/node/pull/39500
2021-07-29 12:32:23 -04:00
Rich Trott
2b350789ea
meta: add .mailmap entry to remove duplication in AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/39559
Reviewed-By: Ricky Zhou <0x19951125@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com >
2021-07-29 12:40:37 +00:00
Rich Trott
d6bb7ed6c8
build: use lts shorthand in GitHub Actions
...
Rather than hard-coding GitHub Actions to use Node.js 14.x, use the
`lts/*` shorthand for "most recent LTS version".
PR-URL: https://github.com/nodejs/node/pull/39538
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-29 04:57:11 +00:00
npm team
3a10a37f28
deps: upgrade npm to 7.20.2
...
PR-URL: https://github.com/nodejs/node/pull/39549
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Beth Griggs <bgriggs@redhat.com >
Reviewed-By: Ruy Adorno <ruyadorno@github.com >
2021-07-28 17:16:31 -04:00
Juan José Arboleda
fea3357b7f
src: add cosmetic space character to async_wrap.h file
...
PR-URL: https://github.com/nodejs/node/pull/39459
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-28 13:44:16 -07:00
Darshan Sen
7ca2f13039
async_hooks: merge resource_symbol with owner_symbol
...
Signed-off-by: Darshan Sen <darshan.sen@postman.com >
PR-URL: https://github.com/nodejs/node/pull/38468
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2021-07-28 13:41:24 -07:00
Lew Gordon
fce53031e5
http: decodes url.username and url.password for authorization header
...
This change properly decodes the url.username and url.password for
the authorization header constructed from the URL object for
http(s) requests.
Fixes: https://github.com/nodejs/node/issues/31439
PR-URL: https://github.com/nodejs/node/pull/39310
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-28 13:39:33 -07:00
Juan José Arboleda
7f167f49dd
doc: add code example to fs.truncate method
...
PR-URL: https://github.com/nodejs/node/pull/39454
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-28 13:36:45 -07:00
Juan José Arboleda
984f7a0bf3
doc: add code example to http.createServer method
...
PR-URL: https://github.com/nodejs/node/pull/39455
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-28 13:35:40 -07:00
Robert Nagy
3f0b62375b
stream: convert premature close to AbortError
...
AbortError is a more "web" align alternative to
ERR_STREAM_PREMATURE_CLOSE.
PR-URL: https://github.com/nodejs/node/pull/39524
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-28 10:12:04 +02:00
Rich Trott
b14fb01324
meta: update collaborator email in AUTHORS/.mailmap
...
Update email for Ujjwal Sharma.
PR-URL: https://github.com/nodejs/node/pull/39521
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-28 04:40:01 +00:00
Rich Trott
069a24464a
meta: update collaborator email in README
...
Update email for Shelley Vohr to correspond to what is specified in
.mailmap and what is used in more recently authored commits.
PR-URL: https://github.com/nodejs/node/pull/39521
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-28 04:40:00 +00:00
Rich Trott
3049026317
meta: update collaborator email in AUTHORS/.mailmap
...
Update email for Zeyu Yang.
PR-URL: https://github.com/nodejs/node/pull/39521
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-28 04:39:59 +00:00
cjihrig
31e8c63a73
tools: update ESLint to 7.31.0
...
Update ESLint to 7.31.0
PR-URL: https://github.com/nodejs/node/pull/39424
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-28 00:21:36 -04:00
Rich Trott
72ccf9f532
meta: move gdams to emeritus
...
George does not appear to be active in Node.js for quite some time
(correction welcome!) and my attempts to get in touch have failed.
PR-URL: https://github.com/nodejs/node/pull/39539
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: Beth Griggs <bgriggs@redhat.com >
Reviewed-By: George Adams <george.adams@microsoft.com >
Reviewed-By: Stewart X Addison <sxa@redhat.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-07-27 23:03:36 +00:00
legendecas
497e5f8517
doc: add PerformanceObserver buffered document
...
The option buffered is not about queueing the PerformanceEntrys with
an event loop task or not. The option buffered in the spec is about
filling the observer with the global PerformanceEntry buffer. The
current (and the spec) behavior is different with Node.js
version <= v16.0.0.
PR-URL: https://github.com/nodejs/node/pull/39514
Refs: https://w3c.github.io/performance-timeline/#observe-method
Refs: https://nodejs.org/dist/latest-v14.x/docs/api/perf_hooks.html#perf_hooks_performanceobserver_observe_options
Refs: https://github.com/nodejs/node/pull/39297
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2021-07-28 00:26:59 +08:00
Filip Skokan
5ad6a99ed9
doc: fix crypto.hkdf callback derivedKey type
...
PR-URL: https://github.com/nodejs/node/pull/39453
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 21:36:54 +00:00
Antoine du Hamel
c1354ffec3
zlib: avoid converting Uint8Array instances to Buffer
...
PR-URL: https://github.com/nodejs/node/pull/39492
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-26 09:01:53 -07:00
Antoine du Hamel
da0ede1ad5
module: refine enrichCJSError
...
PR-URL: https://github.com/nodejs/node/pull/39507
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 08:52:39 -07:00
himself65
257312ac75
crypto: fix generateKeyPair with encoding 'jwk'
...
Fixes: https://github.com/nodejs/node/issues/39205
PR-URL: https://github.com/nodejs/node/pull/39319
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 08:48:54 -07:00
Tobias Nießen
1229d49e39
doc,lib,test: rename HKDF 'key' argument
...
PR-URL: https://github.com/nodejs/node/pull/39474
Refs: https://github.com/nodejs/node/issues/39471
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-26 08:41:42 -07:00
Rich Trott
fc6de093e2
build: use Node.js 14 in commit-lint.yml
...
All of our workflows use Node.js 14.x or 16.x except for commit-lint.yml
which has 12.x hard-coded. Update it to 14.x and change it to using an
environment variable so it is consistent with our other workflows.
PR-URL: https://github.com/nodejs/node/pull/39506
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 07:52:14 -07:00
Rich Trott
4d47bba467
meta: update collaborator email in README
...
Per instructions from Fedor, I'm updating their email address in the
README.
PR-URL: https://github.com/nodejs/node/pull/39510
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 07:50:53 -07:00
Rich Trott
c08a93f154
meta: remove unneeded .mailmap entry
...
The previous Perl script used to generate the AUTHORS file (probably)
needed more entries than the current JS script to avoid duplicate
entries in AUTHORS. The entry removed here is no longer needed for that
purpose, but it is creating a small issue around tooling for gathering
contributor metrics.
PR-URL: https://github.com/nodejs/node/pull/39512
Reviewed-By: Bradley Farias <bradley.meck@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 07:49:46 -07:00
Rich Trott
c07d644696
meta: update email address for collaborator
...
In email, Saúl indicated that they've switched to using their
personalized domain email address. Update their email in README
accordingly. This will align their email in the README with their email
in .mailmap, which will in turn assist the accuracy of tools for
contributor metrics.
PR-URL: https://github.com/nodejs/node/pull/39511
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-26 07:48:13 -07:00
Richard Lau
05f21be800
build: fix host_arch_cc() for AIX/IBM i
...
The AIX/IBM i branch in `host_arch_cc()` that hardcodes the compiler
executable to `gcc` precludes picking up either `CC_host` or `CC`
environment variables (if set) as is done on other platforms. On an
AIX/IBM i platform where the compiler is, e.g. `gcc-10` instead of
just `gcc`, the current check will fail to detect the host architecture
and incorrectly default to `ia32`. Removing the AIX/IBM i specific
branch will follow the same logic as on the other platforms:
1. The value, if set, of the `CC_host` environment variable.
2. Otherwise, if set, the value of the `CC` environment variable.
3. `gcc` (`cc` if on macOS).
PR-URL: https://github.com/nodejs/node/pull/39481
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Ash Cripps <acripps@redhat.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-07-25 22:41:52 +00:00
Richard Lau
d872aaf1cf
test: fix WASI link test
...
The WASI link test attempts to create a link in the temporary directory
to a file in the fixtures directory and can fail if those directories
are on different devices. Update the test so that both the source and
target of the link reside on the same device.
PR-URL: https://github.com/nodejs/node/pull/39485
Fixes: https://github.com/nodejs/node/issues/39484
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-25 18:08:19 +00:00
Robert Nagy
ab03ab4ca9
stream: mark compose as experimental
...
PR-URL: https://github.com/nodejs/node/pull/39494
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-25 19:33:41 +02:00
Robert Nagy
79f4d5a345
stream: fix toWeb typo
...
PR-URL: https://github.com/nodejs/node/pull/39496
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-25 19:32:51 +02:00
legendecas
062f8e3730
perf_hooks: web performance timeline compliance
...
All API introduced in this PR are compliant with web
[performance-timeline](https://w3c.github.io/performance-timeline )
spec. "performance-timeline" is listed as supported web spec in the doc
https://nodejs.org/docs/latest/api/perf_hooks.html#perf_hooks_performance_measurement_apis .
Changes summary:
1. Add new supported wpt test subsets: user-timing and
performance-timeline.
2. Add support for `Performance.getEntries`,
`Performance.getEntriesByName` and `Performance.getEntriesByType`
to synchronously fetch buffered performance entries. This means
the user should invoke `Performance.clearMarks` and
`Performance.clearMeasures` to clear buffered entries to prevent from
those entries been kept alive forever.
3. Add support (again after https://github.com/nodejs/node/pull/37136 )
for `buffered` flags for `PerformanceObserver`.
3. Fixes `PerformanceMark` and `PerformanceMeasure` wpt compliance
issues.
4. Only user-created performance entries will be buffered globally. This
behavior should be compliant with
https://w3c.github.io/timing-entrytypes-registry/#registry .
With the new ability to fetch user-created performance entries
synchronously, the issues raised in
https://github.com/nodejs/diagnostics/issues/464#issuecomment-861920116
could also be fixed.
PR-URL: https://github.com/nodejs/node/pull/39297
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-25 23:43:31 +08:00
Luigi Pinca
5c4e673a96
events: allow an event to be dispatched multiple times
...
Use a different flag to prevent recursive dispatching.
PR-URL: https://github.com/nodejs/node/pull/39395
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-25 16:17:41 +02:00
Luigi Pinca
5b36b8bded
events: allow the options argument to be null
...
Make `EventTarget.prototype.addEventListener()` accept `null` as a valid
value for the `options` argument.
PR-URL: https://github.com/nodejs/node/pull/39486
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
2021-07-25 16:16:26 +02:00
Lance Ball
ee7ee6e14e
doc: move lball@redhat.com to emeritus
...
I have not contributed to Node.js in a couple of years. While I would
love to continue doing so, there's not a high likelihood of this
happening in the near future. This commit moves my status from
collaborator to emeritus.
It's been fun!
Signed-off-by: Lance Ball <lball@redhat.com >
PR-URL: https://github.com/nodejs/node/pull/39501
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-07-25 05:13:13 -07:00
Rich Trott
b6316ab0ae
doc: update AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/39488
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-07-24 19:59:30 +00:00
Rich Trott
e4a77b1d20
doc: update strategic initiative champion
...
This change was discussed at the TSC meeting today.
PR-URL: https://github.com/nodejs/node/pull/39487
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-24 19:59:21 +00:00
Rich Trott
e68357bc8f
meta: align collaborator name in .mailmap/AUTHORS with README
...
I exchanged email with Gerhard to make sure that this was the rendering
of his name that was correct.
PR-URL: https://github.com/nodejs/node/pull/39489
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-07-24 18:01:42 +00:00
Rich Trott
32723ae534
meta: align email address in README/.mailmap/AUTHORS
...
Modify .mailmap so Myles has the same email address in AUTHORS as he
does in README.
PR-URL: https://github.com/nodejs/node/pull/39503
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-24 12:31:41 +00:00
Rich Trott
6140b3753f
meta: revise .mailmap for README consistency
...
Update entry in .mailmap to reflect the same entry in README for an
existing collaborator.
PR-URL: https://github.com/nodejs/node/pull/39457
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2021-07-23 22:08:04 -07:00
Rich Trott
61b7dafeff
meta: alphabetize .mailmap file
...
The file is mostly sorted in lexical order but there are exceptins, a
few of them significant. This puts everything in lexical order.
PR-URL: https://github.com/nodejs/node/pull/39434
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2021-07-24 04:56:04 +00:00
Rich Trott
3810199bd9
meta: align collaborator email in .mailmap/AUTHORS with README
...
Use the most recent and presumably preferred email for a collaborator
whose .mailmap and README entries differ.
PR-URL: https://github.com/nodejs/node/pull/39478
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-23 13:26:34 +00:00
Rich Trott
7228640cc6
tools: flag README/mailmap mismatches in find-inactive-collaborators
...
PR-URL: https://github.com/nodejs/node/pull/39477
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-23 13:14:17 +00:00
Michaël Zasso
56a7e0aa90
crypto: support Big(U)Int64Array in getRandomValues
...
Refs: https://github.com/w3c/webcrypto/issues/255
Fixes: https://github.com/nodejs/node/issues/39442
PR-URL: https://github.com/nodejs/node/pull/39443
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
2021-07-23 08:34:25 +00:00
Antoine du Hamel
ab73d95ace
doc,tools: remove checkLinks.mjs
...
The checks made by this are now integrated to `remark-preset-lint-node`,
there are no reason to keep it around anymore.
PR-URL: https://github.com/nodejs/node/pull/39206
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-07-23 09:38:35 +02:00
legendecas
834ae63d61
src: print native module id on native module not found
...
To help core contributors identify which file is missing from the build.
PR-URL: https://github.com/nodejs/node/pull/39460
Refs: https://github.com/nodejs/node/issues/39408
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-23 13:47:00 +08:00
Stephen Belanger
3fb484f4e3
lib: comment explaining special-case handling of promises
...
Promise handling is special-cased for domains and trace_events.
Domains must not add the `domain` property to promises in other
contexts, and trace_events must be emitted from JavaScript as
promises no longer have an AsyncWrap type attached to them.
PR-URL: https://github.com/nodejs/node/pull/39135
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2021-07-23 03:54:33 +00:00
Stephen Belanger
f88da657f1
domain: do not add domain to promise from other context
...
PR-URL: https://github.com/nodejs/node/pull/39135
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2021-07-23 03:54:33 +00:00
Stephen Belanger
37d5739e0c
async_hooks: emit promise trace events from JS
...
PR-URL: https://github.com/nodejs/node/pull/39135
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2021-07-23 03:54:32 +00:00
Stephen Belanger
84dfa1f3e3
async_hooks: eliminate native PromiseHook
...
PR-URL: https://github.com/nodejs/node/pull/39135
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2021-07-23 03:54:31 +00:00