Yagiz Nizipli
022f1b70c1
src: support multiple --env-file declarations
...
PR-URL: https://github.com/nodejs/node/pull/49542
Refs: https://github.com/nodejs/node/issues/49148
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-11 12:41:19 +00:00
Phil Nash
154b1c2115
src: don't overwrite environment from .env file
...
This commit adds a check to see if an environment variable that is
found in the .env file is already set in the environment. If it is,
then the value from the .env file is not used.
PR-URL: https://github.com/nodejs/node/pull/49424
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-11 12:41:05 +00:00
Erick Wendel
36763fa532
test_runner: preserve original property descriptor
...
PR-URL: https://github.com/nodejs/node/pull/49433
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Raz Luvaton <rluvaton@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:09:42 +00:00
Jungku Lee
ca1384166d
test: fix warning for comment in embedtest
...
PR-URL: https://github.com/nodejs/node/pull/49416
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com >
2023-09-10 18:09:42 +00:00
Filip Skokan
ef3d8dd493
crypto: remove webcrypto EdDSA key checks and properties
...
As per https://github.com/WICG/webcrypto-secure-curves/pull/24
PR-URL: https://github.com/nodejs/node/pull/49408
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-09-10 18:09:40 +00:00
Tim Perry
8949cc79dd
tls: ensure TLS Sockets are closed if the underlying wrap closes
...
This fixes a potential segfault, among various other likely-related
issues, which all occur because TLSSockets were not informed if their
underlying stream was closed in many cases.
This also significantly modifies an existing TLS test. With this change
in place, that test no longer works, as it tries to mess with internals
to trigger a race, and those internals are now cleaned up earlier. This
test has been simplified to a more general TLS shutdown test.
PR-URL: https://github.com/nodejs/node/pull/49327
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
2023-09-10 18:09:40 +00:00
Tobias Nießen
2a35782809
test: simplify test-crypto-dh-group-setters
...
I can't tell why the test was written that way in the first place, but
it seems sufficient to check that setPrivateKey and setPublicKey are
both undefined.
Refs: https://github.com/nodejs/node-v0.x-archive/pull/2638
Refs: https://github.com/nodejs/node/pull/11253
PR-URL: https://github.com/nodejs/node/pull/49404
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:40 +00:00
Chengzhong Wu
6740f3c209
test: verify dynamic import call with absolute path strings
...
PR-URL: https://github.com/nodejs/node/pull/49275
Refs: https://github.com/nodejs/node/pull/48655
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-09-10 18:09:39 +00:00
LiviaMedeiros
ae40cb1612
url: validate pathToFileURL(path) argument as string
...
PR-URL: https://github.com/nodejs/node/pull/49161
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-09-10 18:09:38 +00:00
Tim Perry
2486836a7d
net: fix crash due to simultaneous close/shutdown on JS Stream Sockets
...
A JS stream socket wraps a stream, exposing it as a socket for something
on top which needs a socket specifically (e.g. an HTTP server).
If the internal stream is closed in the same tick as the layer on top
attempts to close this stream, the race between doShutdown and doClose
results in an uncatchable exception. A similar race can happen with
doClose and doWrite.
It seems legitimate these can happen in parallel, so this resolves that
by explicitly detecting and handling that situation: if a close is in
progress, both doShutdown & doWrite allow doClose to run
finishShutdown/Write for them, cancelling the operation, without trying
to use this._handle (which will be null) in the meantime.
PR-URL: https://github.com/nodejs/node/pull/49400
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:38 +00:00
Yagiz Nizipli
e787673dcf
url: handle unicode hostname if empty
...
PR-URL: https://github.com/nodejs/node/pull/49396
Fixes: https://github.com/nodejs/node/issues/48759
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:37 +00:00
Joyee Cheung
6ed47bd8fb
test: reduce length in crypto keygen tests
...
PR-URL: https://github.com/nodejs/node/pull/49221
Refs: https://github.com/nodejs/node/issues/49202
Refs: https://github.com/nodejs/node/issues/41206
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:37 +00:00
Joyee Cheung
4faa30c553
test: split JWK async elliptic curve keygen tests
...
PR-URL: https://github.com/nodejs/node/pull/49221
Refs: https://github.com/nodejs/node/issues/49202
Refs: https://github.com/nodejs/node/issues/41206
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:37 +00:00
Joyee Cheung
e04a2603d8
test: split test-crypto-keygen.js
...
To avoid timing out on ARM machines in the CI.
PR-URL: https://github.com/nodejs/node/pull/49221
Refs: https://github.com/nodejs/node/issues/49202
Refs: https://github.com/nodejs/node/issues/41206
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:36 +00:00
Tobias Nießen
f45c8e10c0
doc,test: add known path resolution issue in permission model
...
As a side effect of 205f1e643e , Node.js
now resolves some paths differently when the permission model is
enabled. While these are mostly edge cases, they are worth mentioning in
the documentation. This commit also adds a known_issues test that
demonstrates one such difference.
PR-URL: https://github.com/nodejs/node/pull/49155
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-09-10 18:09:36 +00:00
Erick Wendel
40e9fcdbea
test_runner: add support for setImmediate
...
PR-URL: https://github.com/nodejs/node/pull/49397
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
2023-09-10 18:09:36 +00:00
Phil Nash
23216f1935
test_runner: report covered lines, functions and branches to reporters
...
This is a breaking change for the format of test:coverage events. But
the test coverage is still experimental, so I don't believe it requires
a semver-major bump.
Fixes https://github.com/nodejs/node/issues/49303
PR-URL: https://github.com/nodejs/node/pull/49320
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:09:35 +00:00
Tobias Nießen
0d23c1d4ce
test: rename test-crypto-modp1-error
...
This test is not specific to modp1 at all, it might as well use any of
the other groups.
Refs: https://github.com/nodejs/node/pull/40451
PR-URL: https://github.com/nodejs/node/pull/49348
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:09:34 +00:00
Yiyun Lei
48e41569e2
test: migrate message source map tests from Python to JS
...
Migrate the remaining source map tests in the `test/message` folder
from Python to JS.
Fixes: https://github.com/nodejs/node/issues/47707
test: migrate message source map tests from Python to JS
PR-URL: https://github.com/nodejs/node/pull/49238
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:09:33 +00:00
Khafra
0eea7fd8fb
stream: use Buffer.from when constructor is a Buffer
...
When using BYOB streams, it's possible for the constructor in
readableByteStreamControllerConvertPullIntoDescriptor to be a node
Buffer. If it is, use `Buffer.from` over `new ctor`.
Fixes https://github.com/nodejs/node/issues/49245
PR-URL: https://github.com/nodejs/node/pull/49250
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-10 18:09:30 +00:00
Antoine du Hamel
5051c75a5b
policy: fix path to URL conversion
...
PR-URL: https://github.com/nodejs/node/pull/49133
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:09:29 +00:00
Tobias Nießen
a11e64e09c
test: fix compiler warning in NodeCryptoEnv
...
This fixes a warning in line 26: "warning: value computed is not used"
when calling BIO_seek().
Refs: https://github.com/nodejs/node/pull/47160
PR-URL: https://github.com/nodejs/node/pull/49206
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-09-10 18:09:28 +00:00
Raz Luvaton and Robert Nagy
b961d9bd52
stream: add highWaterMark for the map operator
...
this is done so we don't wait for the first items to
finish before starting new ones
Fixes: https://github.com/nodejs/node/issues/46132
Co-authored-by: Robert Nagy <ronagy@icloud.com >
PR-URL: https://github.com/nodejs/node/pull/49249
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
2023-09-10 18:09:27 +00:00
Robert Nagy and Chemi Atlow
88ba79b083
fs: make sure to write entire buffer
...
fs.write(v) is not guaranteed to write everything in a single
call. Make sure we don't assume so.
PR-URL: https://github.com/nodejs/node/pull/49211
Co-authored-by: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Robert Nagy <ronagy@icloud.com >
2023-09-10 18:09:26 +00:00
Abdirahim Musse
345543938f
test: handle EUNATCH
...
When IPv6 is disabled IBM i returns EUNATCH (errno 42)
instead of EADDRNOTAVAIL.
libuv 1.46.0 adds EUNATCH errno
We can now use error.code to refer to EUNATCH
in node versions that use libuv 1.46.0.
PR-URL: https://github.com/nodejs/node/pull/48050
Refs: https://github.com/nodejs/node/issues/48049
Refs: https://github.com/nodejs/node/pull/46546
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2023-09-10 18:09:25 +00:00
Antoine du Hamel
0179c6dc8f
worker: protect against user mutating well-known prototypes
...
PR-URL: https://github.com/nodejs/node/pull/49270
Fixes: https://github.com/nodejs/node/issues/49259
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-10 18:09:25 +00:00
Joyee Cheung
d7ff78b442
sea: generate code cache with deserialized isolate
...
V8 now requires code cache to be compiled from an isolate with the
same RO space layout as the one that's going to deserialize the
cache, so for a binary built with snapshot, we need to compile
the code cache using a deserialized isolate.
Drive-by: ignore "useCodeCache" when "useSnapshot" is true because
the compilation would've been done during build time anyway in
that case, and print a warning for it.
PR-URL: https://github.com/nodejs/node/pull/49226
Refs: https://github.com/nodejs/node-v8/issues/252
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-10 18:07:41 +00:00
Livia Medeiros
fac56dbcc0
test,benchmark: use tmpdir.fileURL()
...
PR-URL: https://github.com/nodejs/node/pull/49138
Refs: https://github.com/nodejs/node/pull/49040
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:07:39 +00:00
Livia Medeiros
e391f4b197
test: use tmpdir.resolve()
...
PR-URL: https://github.com/nodejs/node/pull/49136
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:07:39 +00:00
Antoine du Hamel
910378f93f
test: reduce flakiness of test-esm-loader-hooks
...
PR-URL: https://github.com/nodejs/node/pull/49248
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Jacob Smith <jacob@frende.me >
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
2023-09-10 18:07:38 +00:00
Joyee Cheung
4a85f70462
test: add spawnSyncAndExit() and spawnSyncAndExitWithoutError()
...
Replaces expectSyncExit() and expectSyncExitWithoutError(). Since
we usually just check the child process right after its spawned,
these shorthands also takes care of the spawning. This makes the
tests more concise.
PR-URL: https://github.com/nodejs/node/pull/49200
Reviewed-By: LiviaMedeiros <livia@cirno.name >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-09-10 18:07:36 +00:00
Joyee Cheung
9610008b79
test: make test-perf-hooks more robust and work with workers
...
Previously the test makes several assumptions about the absolute
values of the nodeTiming fields, which can make the test flaky
on slow machines. This patch rewrites the test to check the
relative values instead. It also updates the test to make it
work with workers instead of directly skipping in workers.
PR-URL: https://github.com/nodejs/node/pull/49197
Refs: https://github.com/nodejs/reliability/issues/638
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2023-09-10 18:07:36 +00:00
Joyee Cheung
dc8fff9a75
test: use gcUntil() in test-v8-serialize-leak
...
Previously this can be flaky because the there could be a delay
of the deallocation after gc() is invoked. Use gcUntil() to run
the GC multiple times to make the test more robust.
PR-URL: https://github.com/nodejs/node/pull/49168
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:07:35 +00:00
Carlos Espa
ec51e25ed7
src,permission: add multiple allow-fs-* flags
...
Support for a single comma separates list for allow-fs-* flags is
removed. Instead now multiple flags can be passed to allow multiple
paths.
Fixes: https://github.com/nodejs/security-wg/issues/1039
PR-URL: https://github.com/nodejs/node/pull/49047
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com >
2023-09-10 18:07:33 +00:00
Chemi Atlow
283f2806b1
test_runner: expose spec reporter as newable function
...
Fixes: https://github.com/nodejs/node/issues/48112
Ref: https://github.com/nodejs/node/pull/48208
PR-URL: https://github.com/nodejs/node/pull/49184
Refs: https://github.com/nodejs/node/pull/48208
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:07:33 +00:00
翠 / green
11c85ffa98
lib: add api to detect whether source-maps are enabled
...
Add `process.sourceMapsEnabled` to detect
whether source-maps are enabled.
Fixes: https://github.com/nodejs/node/issues/46304
PR-URL: https://github.com/nodejs/node/pull/46391
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:07:32 +00:00
Joyee Cheung
c12711ebfe
lib: implement WeakReference on top of JS WeakRef
...
The C++ implementation can now be done entirely in JS using WeakRef.
Re-implement it in JS instead to simplify the code.
PR-URL: https://github.com/nodejs/node/pull/49053
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-10 18:07:31 +00:00
Joyee Cheung
ca9f801332
test: make WeakReference tests robust
...
Previously we assume that the objects are GC'ed after one
global.gc() returns, which is not necessarily always the case. Use
gcUntil() to run GC multiple times if they are not GC'ed in the
first time around.
PR-URL: https://github.com/nodejs/node/pull/49053
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-10 18:07:30 +00:00
Tobias Nießen
de103a4686
test: add test for effect of UV_THREADPOOL_SIZE
...
This (not particularly elegant) native addon tests the effect of
UV_THREADPOOL_SIZE on node-api. The test fails if Node.js allows more
than UV_THREADPOOL_SIZE async tasks to run concurrently, or if it limits
the number of concurrent async tasks to anything less than
UV_THREADPOOL_SIZE.
PR-URL: https://github.com/nodejs/node/pull/49165
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2023-09-10 18:07:30 +00:00
Joyee Cheung
47d24f144b
test: use expectSyncExit{WithErrors} in snapshot tests
...
..and replace the similar code added for logging.
PR-URL: https://github.com/nodejs/node/pull/49020
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:07:29 +00:00
Joyee Cheung
c441f5a097
test: add expectSyncExitWithoutError() and expectSyncExit() utils
...
These can be used to check the state and the output of a child
process launched with `spawnSync()`. They log additional information
about the child process when the check fails to facilitate debugging
test failures.
PR-URL: https://github.com/nodejs/node/pull/49020
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2023-09-10 18:07:29 +00:00
Colin Ihrig
546ad5f770
test_runner: reland run global after() hook earlier
...
This commit reverts the revert in
bb52656fc6 . It also includes the
fix for the issue that required the revert
(https://github.com/nodejs/node/pull/49059#issuecomment-1675171959 )
and an additional common.mustCall() in the added test.
Refs: https://github.com/nodejs/node/pull/49059
Refs: https://github.com/nodejs/node/pull/49110
PR-URL: https://github.com/nodejs/node/pull/49116
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2023-09-10 18:03:37 +00:00
cjihrig
efdc95fbc0
test_runner: expose location of tests
...
This commit adds each test's line and column number to the reporter
output. This will aid in debugging test suite failures when error
stacks are not helpful, test suites are large, or tests have the
same name. This data is also exposed on the spec reporter.
This commit also replaces the filename that was previously being
reported, with the filename where the test actually exists. These
are normally correct, but could be wrong if tests were run from
a file other than the user's entrypoint.
PR-URL: https://github.com/nodejs/node/pull/48975
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Fixes: https://github.com/nodejs/node/issues/48457
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:03:35 +00:00
Raz Luvaton
4d184b5251
test: remove --no-warnings flag in test_runner fixtures
...
no longer needed after #48915 fix
PR-URL: https://github.com/nodejs/node/pull/48989
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:03:31 +00:00
Raz Luvaton
4bc0a8fe99
test_runner: fix global after not failing the tests
...
PR-URL: https://github.com/nodejs/node/pull/48913
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Fixes: https://github.com/nodejs/node/issues/48867
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:03:28 +00:00
Raz Luvaton
08738b2664
test_runner: fix timeout in *Each hook failing further tests
...
PR-URL: https://github.com/nodejs/node/pull/48925
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:03:26 +00:00
Raz Luvaton
c2f1830f66
test_runner: cleanup test timeout abort listener
...
fix #48475
PR-URL: https://github.com/nodejs/node/pull/48915
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:03:22 +00:00
Raz Luvaton
75333f38b2
test_runner: fix global before not called when no global test exists
...
PR-URL: https://github.com/nodejs/node/pull/48877
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
2023-09-10 18:03:19 +00:00
Raz Luvaton
25e967a90b
test: reorder test files fixtures for better understanding
...
PR-URL: https://github.com/nodejs/node/pull/48787
Backport-PR-URL: https://github.com/nodejs/node/pull/49225
Reviewed-By: Moshe Atlow <moshe@atlow.co.il >
Reviewed-By: Chemi Atlow <chemi@atlow.co.il >
2023-09-10 18:03:15 +00:00
Antoine du Hamel
8acbe6d8e8
esm: fix loading of CJS modules from ESM
...
PR-URL: https://github.com/nodejs/node/pull/49500
Fixes: https://github.com/nodejs/node/issues/49497
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Jacob Smith <jacob@frende.me >
2023-09-07 09:15:49 -03:00