Chengzhong Wu
55f3d215b8
node-api: document node-api shutdown finalization
...
As status quo, the cleanup hooks are invoked before the `napi_finalize`
callbacks at the exit of Node.js environments. This gives addons a
chance to release their resource in a proper order manually.
Document this behavior explicitly to advocate the usage on cleanup
hooks instead of relying on the implied invocation of `napi_finalize`
callbacks at shutdown.
PR-URL: https://github.com/nodejs/node/pull/45903
Fixes: https://github.com/nodejs/node/issues/45088
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-04-07 08:40:34 -03:00
Rich Trott
a03aaba996
doc: update collaborator guide to reflect TSC changes
...
Ref: https://github.com/nodejs/TSC/pull/1350
PR-URL: https://github.com/nodejs/node/pull/47126
Refs: https://github.com/nodejs/TSC/pull/1350
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2023-04-07 08:40:34 -03:00
Rich Trott
d78bef8a1f
tools,meta: update README and tools to reflect changes in TSC charter
...
Ref: https://github.com/nodejs/TSC/pull/1350
PR-URL: https://github.com/nodejs/node/pull/47126
Refs: https://github.com/nodejs/TSC/pull/1350
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2023-04-07 08:40:34 -03:00
Rich Trott
d2a6aa6ecd
meta: update GOVERNANCE.md to reflect TSC charter changes
...
Refer to TSC voting members where necessary.
Ref: https://github.com/nodejs/TSC/pull/1350
PR-URL: https://github.com/nodejs/node/pull/47126
Refs: https://github.com/nodejs/TSC/pull/1350
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2023-04-07 08:40:34 -03:00
Tobias Nießen
45e7b10287
test: fix 'checks' validation test for checkPrime
...
This test had two problems:
* The first argument was a number in both cases, which is what caused
the (expected) ERR_INVALID_ARG_TYPE error -- the validity of the
'checks' option was not actually verified at all. Thus, the first
argument should be valid for this particular test.
* The function returned by common.mustNotCall() was passed to
assert.throws() as a third argument instead of being passed to
checkPrime() as a third argument. (Isn't JavaScript great?) This again
led to the (expected) ERR_INVALID_ARG_TYPE error, but again, the
validity of the 'checks' option was not verified.
Fix both issues by ensuring that all arguments except the 'checks'
option are valid.
Refs: https://github.com/nodejs/node/pull/36997
PR-URL: https://github.com/nodejs/node/pull/47139
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-04-07 08:40:34 -03:00
Yagiz Nizipli
5749dfae70
test: update URL web-platform-tests
...
PR-URL: https://github.com/nodejs/node/pull/47135
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-04-07 08:40:34 -03:00
Khafra
c5cd6b7f3b
events: add getMaxListeners method
...
PR-URL: https://github.com/nodejs/node/pull/47039
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-04-07 08:40:34 -03:00
Cheng Zhao
10569de53f
deps: cherry-pick win/arm64/clang fixes
...
Refs: ngtcp2/nghttp3#112
Refs: ngtcp2/ngtcp2#692
Refs: HdrHistogram/HdrHistogram_c#114
PR-URL: https://github.com/nodejs/node/pull/47011
Refs: https://github.com/ngtcp2/nghttp3/pull/112
Refs: https://github.com/ngtcp2/ngtcp2/pull/692
Refs: https://github.com/HdrHistogram/HdrHistogram_c/pull/114
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2023-04-07 08:40:34 -03:00
Filip Skokan
65955f1e46
test,crypto: update WebCryptoAPI WPT
...
PR-URL: https://github.com/nodejs/node/pull/47131
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-04-07 08:40:34 -03:00
Antoine du Hamel
0b565e8f62
url: allow extension of user provided URL objects
...
PR-URL: https://github.com/nodejs/node/pull/46989
Fixes: https://github.com/nodejs/node/issues/46981
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-04-07 08:40:34 -03:00
Antoine du Hamel
c45a6977ec
doc: clarify that fs.create{Read,Write}Stream support AbortSignal
...
Refs: https://github.com/nodejs/node/pull/36431
PR-URL: https://github.com/nodejs/node/pull/47122
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-04-07 08:40:34 -03:00
Julian Dax
82c7757177
doc: improve documentation for util.types.isNativeError()
...
Makes clear what a native error is by linking the spec. Explains that
`instanceof Error` and util.types.isNativeError() are not equivalent.
Give examples for objects that are `instance of Error` but not native
errors and vice versa. Recommends checking for both if one wants to find
out if something is an error.
PR-URL: https://github.com/nodejs/node/pull/46840
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2023-04-07 08:40:34 -03:00
Debadree Chatterjee
49981b93d2
test: reduce flakiness of test-http-remove-header-stays-removed.js
...
Refs: https://github.com/nodejs/reliability/issues/508
Refs: https://github.com/nodejs/node/pull/46333
PR-URL: https://github.com/nodejs/node/pull/46855
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-04-07 08:40:34 -03:00
Joyee Cheung
8f9b9c17d5
doc: rename the startup performance initiative to startup snapshot ( #47111 )
...
The initiative has been more focused on startup snapshot integration
which is more of a feature on its own, so rename it to "startup
snapshot".
Background: we are also considering adding a more generic performance
initiative in https://github.com/nodejs/TSC/issues/1343 .
2023-04-07 08:40:34 -03:00
Darshan Sen
ff6070eb1d
deps: V8: cherry-pick cb30b8e17429
...
Original commit message:
Fix compilation error in platform.h for ASAN
The last two operands of the conditional expression needs to be
of the same type to compile.
Change-Id: Ib6cba4acb1238394910c650c776a7fd1ee93721e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4306802
Commit-Queue: Joyee Cheung <joyee@igalia.com >
Reviewed-by: Michael Lippautz <mlippautz@chromium.org >
Cr-Commit-Position: refs/heads/main@{#86235}
Refs: https://github.com/v8/v8/commit/cb30b8e1742938dff0a24470f24d649b1664f0c2
Refs: https://github.com/nodejs/node/issues/43370
Signed-off-by: Darshan Sen <raisinten@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/47307
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2023-04-07 08:40:34 -03:00
Stefan Stojanovic
6772aa652a
test: fix test-child-process-exec-cwd
...
Refs: https://github.com/nodejs/node/pull/47020
Refs: https://github.com/nodejs/build/issues/3046
PR-URL: https://github.com/nodejs/node/pull/47235
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
2023-04-07 08:40:33 -03:00
Stefan Stojanovic
41a69e772b
test: skip broken tests win arm64
...
PR-URL: https://github.com/nodejs/node/pull/47020
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2023-04-07 08:40:33 -03:00
Nicolas DUBIEN
9537672511
vm: properly handle defining props on any value
...
While it was supposed to fix most of the remaining issues,
https://github.com/nodejs/node/pull/46458 missed some in strict mode.
This PR adds some additional checks. It also clarifies what we are
really checking to execute or not the `GetReturnValue`.
PR-URL: https://github.com/nodejs/node/pull/46615
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2023-03-18 10:55:52 +01:00
Tobias Nießen
7bcfd18f2c
test: mark test-http-max-sockets as flaky on win32
...
Refs: https://github.com/nodejs/node/issues/47116
PR-URL: https://github.com/nodejs/node/pull/47134
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com >
2023-03-18 10:41:35 +01:00
Daniel Roe
c08995e897
doc: indicate that name is no longer an optional argument
...
PR-URL: https://github.com/nodejs/node/pull/47102
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Harshitha K P <harshitha014@gmail.com >
2023-03-18 10:41:35 +01:00
Keyhan Vakil
2fd0f79963
src: fix duplication of externalized builtin code
...
The `else` here was missing, causing us to append the file to its
existing `source` already in the map.
Refs: https://github.com/nodejs/node/pull/45942
PR-URL: https://github.com/nodejs/node/pull/47079
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-03-18 10:41:34 +01:00
Debadree Chatterjee
5a43586554
test_runner: accept \x1b as a escape symbol
...
Fixes: https://github.com/nodejs/node/issues/46959
PR-URL: https://github.com/nodejs/node/pull/47050
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-03-18 10:41:34 +01:00
Keyhan Vakil
36a026bf44
src: remove dead comments about return_code_cache
...
This behavior of sometimes returning the function & other times
returning the code cache was removed a long time ago in the referenced
PR, as evinced by the return type `MaybeLocal<Function>`. Remove these
incorrect comments.
Refs: https://github.com/nodejs/node/pull/24950
PR-URL: https://github.com/nodejs/node/pull/47083
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2023-03-18 10:41:34 +01:00
Xuguang Mei
d6a12328a6
repl: preserve preview on ESCAPE key press
...
Fix : #46876
PR-URL: https://github.com/nodejs/node/pull/46878
Fixes: https://github.com/nodejs/node/issues/46876
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2023-03-18 10:41:34 +01:00
Node.js GitHub Bot
8850dacc88
tools: update lint-md-dependencies to rollup@3.19.1
...
PR-URL: https://github.com/nodejs/node/pull/47045
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-03-18 10:41:34 +01:00
Tony Gorez
d1ca5b6d47
tools: align update-ada.sh with other scripts
...
PR-URL: https://github.com/nodejs/node/pull/47044
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2023-03-18 10:41:33 +01:00
Tobias Nießen
aefe26692c
src: remove SSL_CTX_get_tlsext_ticket_keys guards
...
OPENSSL_NO_TLSEXT was removed from OpenSSL a long time ago and both
OpenSSL and BoringSSL always unconditionally define
SSL_CTX_get_tlsext_ticket_keys now.
PR-URL: https://github.com/nodejs/node/pull/47068
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-03-18 10:41:33 +01:00
Keyhan Vakil
316d626e61
doc: fix "maintaining dependencies" heading typos
...
Fix the obvious "IZA" typo. Also remove a period, since that seems to
match the rest of the doc folder.
PR-URL: https://github.com/nodejs/node/pull/47082
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
Reviewed-By: Erick Wendel <erick.workspace@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-03-18 10:36:08 +01:00
Keyhan Vakil
90f4e16350
src: fix clang 14 linker error
...
Compiling with clang 14 on Ubuntu was failing with a linker error that
`node::MaybeStackBuffer::AllocateSufficientStorage` was undefined in
`src/inspector/node_string.cc`. I bisected it to the referenced PR.
Include `util-inl.h` which defines
`node::MaybeStackBuffer::AllocateSufficientStorage`.
Refs: https://github.com/nodejs/node/pull/46817
PR-URL: https://github.com/nodejs/node/pull/47057
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-03-18 10:36:07 +01:00
theanarkh
f6ec81dc05
inspector: fix session.disconnect crash
...
PR-URL: https://github.com/nodejs/node/pull/46942
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2023-03-18 10:36:07 +01:00
Steve Herzog
a5ebc896f1
test_runner: support defining test reporter in NODE_OPTIONS
...
Adds --test-reporter and --test-reporter-destination as
allowable options in NODE_OPTIONS. Also adds the CLI flag
--test-child-process to allow forcing the default
test-reporter for inter-process communication.
Fixes: https://github.com/nodejs/node/issues/46484
PR-URL: https://github.com/nodejs/node/pull/46688
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-03-18 10:36:07 +01:00
Chengzhong Wu
b3fe2ba59b
node-api: verify cleanup hooks order
...
Cleanup hooks are called before the environment shutdown finalizer
invocations.
PR-URL: https://github.com/nodejs/node/pull/46692
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-03-18 10:36:07 +01:00
Ben Noordhuis
b0aad345bf
meta: ask expected behavior reason in bug template
...
It happens too often that bug reporters only report _what_ they expect
to see without motivating _why_. Having to repeatedly ask for that info
gets old.
PR-URL: https://github.com/nodejs/node/pull/47049
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-03-18 10:36:07 +01:00
Node.js GitHub Bot
b58d52301e
tools: update eslint to 8.36.0
...
PR-URL: https://github.com/nodejs/node/pull/47046
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2023-03-18 10:36:06 +01:00
Michaël Zasso
5991d9385b
Working on v19.8.2
...
PR-URL: https://github.com/nodejs/node/pull/47104
2023-03-15 18:10:03 +01:00
Michaël Zasso
e808076389
2023-03-15, Version 19.8.1 (Current)
...
Notable changes:
This release contains a single revert of a change that was introduced in v19.8.0
and introduced application crashes.
Fixes: https://github.com/nodejs/node/issues/47096
PR-URL: https://github.com/nodejs/node/pull/47104
v19.8.1
2023-03-15 17:05:36 +01:00
Michaël Zasso
f7c8aa4cf1
Revert "vm: fix leak in vm.compileFunction when importModuleDynamically is used"
...
This reverts commit 986498b7b3 .
Fixes: https://github.com/nodejs/node/issues/47096
PR-URL: https://github.com/nodejs/node/pull/47101
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-03-15 15:43:49 +01:00
Michaël Zasso
ce910bec2d
Working on v19.8.1
...
PR-URL: https://github.com/nodejs/node/pull/47087
2023-03-14 19:48:30 +01:00
Michaël Zasso
4221dce8a5
2023-03-14, Version 19.8.0 (Current)
...
Notable changes:
buffer:
* (SEMVER-MINOR) add Buffer.copyBytesFrom(...) (James M Snell) https://github.com/nodejs/node/pull/46500
doc:
* add marco-ippolito to collaborators (Marco Ippolito) https://github.com/nodejs/node/pull/46816
events:
* (SEMVER-MINOR) add listener argument to listenerCount (Paolo Insogna) https://github.com/nodejs/node/pull/46523
lib:
* (SEMVER-MINOR) add AsyncLocalStorage.bind() and .snapshot() (flakey5) https://github.com/nodejs/node/pull/46387
src:
* (SEMVER-MINOR) add `fs.openAsBlob` to support File-backed Blobs (James M Snell) https://github.com/nodejs/node/pull/45258
tls:
* (SEMVER-MINOR) support automatic DHE (Tobias Nießen) https://github.com/nodejs/node/pull/46978
url:
* (SEMVER-MINOR) implement URLSearchParams size getter (James M Snell) https://github.com/nodejs/node/pull/46308
wasi:
* (SEMVER-MINOR) add support for version when creating WASI (Michael Dawson) https://github.com/nodejs/node/pull/46469
worker:
* (SEMVER-MINOR) add support for worker name in inspector and trace_events (Debadree Chatterjee) https://github.com/nodejs/node/pull/46832
PR-URL: https://github.com/nodejs/node/pull/47087
v19.8.0
2023-03-14 11:36:42 +01:00
Filip Skokan
36c48eab31
tools: add daily WPT Report workflow step summary
...
PR-URL: https://github.com/nodejs/node/pull/46763
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-03-14 08:15:33 +01:00
Filip Skokan
12a561875b
tools: add undici WPTs to daily WPT Report
...
PR-URL: https://github.com/nodejs/node/pull/46763
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-03-14 08:15:28 +01:00
Node.js GitHub Bot
84f5a1f942
deps: update undici to 5.21.0
...
PR-URL: https://github.com/nodejs/node/pull/47063
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com >
2023-03-14 08:15:24 +01:00
Anna Henningsen
ed31316c2e
src: use std::array for passing argv in node::url
...
Implements a review suggestion from 72e971ee2e .
Refs: https://github.com/nodejs/node/pull/47001#issuecomment-1462999332
PR-URL: https://github.com/nodejs/node/pull/47035
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-03-14 08:15:21 +01:00
Tobias Nießen
c310a32857
doc: remove remaining SSL_OP_NETSCAPE_*_BUG
...
I missed these two in db81af61ce because I
went by OpenSSL's list of obsolete flags, which turned out to be
incomplete. See https://github.com/openssl/openssl/pull/20443 .
Refs: https://github.com/nodejs/node/pull/46954
Refs: https://github.com/openssl/openssl/pull/20443
PR-URL: https://github.com/nodejs/node/pull/47066
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-03-14 08:15:18 +01:00
Geoffrey Booth
18f0398242
esm: allow resolve to return import assertions
...
PR-URL: https://github.com/nodejs/node/pull/46153
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2023-03-14 08:11:13 +01:00
Geoffrey Booth
5eb5be8c71
esm: move hooks handling into separate class
...
PR-URL: https://github.com/nodejs/node/pull/45869
Backport-PR-URL: https://github.com/nodejs/node/pull/46511
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2023-03-14 08:10:04 +01:00
Moshe Atlow
5e31599c26
test_runner: default to spec reporter when on TTY environment
...
PR-URL: https://github.com/nodejs/node/pull/46969
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2023-03-14 07:54:17 +01:00
cjihrig
18146fc8c1
test_runner: handle errors not bound to tests
...
This commit addresses a previously untested branch of the code.
It is possible when using the test runner that an error occurs
outside of a test. In this case, the test runner would simply
rethrow the error. This commit updates the logic to handle the
error in the same fashion as other uncaughtExceptions.
PR-URL: https://github.com/nodejs/node/pull/46962
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-03-14 07:54:17 +01:00
cjihrig
7960ccb61e
test_runner: throw if harness is not bootstrapped
...
This commit updates the test harness to re-throw uncaught errors
if bootstrapping has not completed. This updates the existing
logic which tried to detect a specific error code.
PR-URL: https://github.com/nodejs/node/pull/46962
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-03-14 07:54:17 +01:00
cjihrig
b832d77500
test_runner: track bootstrapping process
...
This commit updates the test harness and root test to track
when bootstrapping has completed.
PR-URL: https://github.com/nodejs/node/pull/46962
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-03-14 07:54:17 +01:00