node/lib
Joyee Cheung db1746182b
module: disallow CJS <-> ESM edges in a cycle from require(esm)
This patch disallows CJS <-> ESM edges when they come from
require(esm) requested in ESM evalaution.

Drive-by: don't reuse the cache for imported CJS modules to stash
source code of required ESM because the former is also used for
cycle detection.

PR-URL: https://github.com/nodejs/node/pull/52264
Fixes: https://github.com/nodejs/node/issues/52145
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-08 14:45:55 +00:00
..
assert
dns
fs
inspector
internal module: disallow CJS <-> ESM edges in a cycle from require(esm) 2024-04-08 14:45:55 +00:00
path
readline readline: use internal addAbortListener 2024-03-16 09:08:57 +00:00
stream
test
timers
util
_http_agent.js lib: remove deprecated string methods 2023-11-11 15:44:16 +00:00
_http_client.js lib: fix http client socket path 2024-02-29 20:22:10 +00:00
_http_common.js
_http_incoming.js
_http_outgoing.js http: split set-cookie when using setHeaders 2024-02-04 17:36:16 +00:00
_http_server.js lib: make sure clear the old timer in http server 2024-03-19 12:42:33 +00:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js
_stream_transform.js
_stream_wrap.js
_stream_writable.js
_tls_common.js
_tls_wrap.js errors: improve hideStackFrames 2023-11-11 16:25:08 +00:00
.eslintrc.yaml lib,test: handle new Iterator global 2024-03-31 15:37:38 +02:00
assert.js lib: fix assert shows diff messages in ESM and CJS 2023-11-11 14:24:56 +00:00
async_hooks.js
buffer.js buffer: use simdutf for atob implementation 2024-04-08 12:43:28 +00:00
child_process.js child_process: use internal addAbortListener 2024-03-16 09:08:56 +00:00
cluster.js
console.js
constants.js
crypto.js crypto: runtime deprecate hmac constructor 2024-03-20 16:20:05 +00:00
dgram.js dgram: use internal addAbortListener 2024-03-16 09:08:56 +00:00
diagnostics_channel.js diagnostics_channel: early-exit tracing channel trace methods 2024-03-07 03:03:32 +00:00
dns.js errors: improve hideStackFrames 2023-11-11 16:25:08 +00:00
domain.js
events.js events: rename high & low watermark for consistency 2024-04-05 14:07:47 +00:00
fs.js fs,permission: make handling of buffers consistent 2024-04-06 07:37:04 +00:00
http2.js http2: add server handshake utility 2024-01-12 16:09:48 +00:00
http.js
https.js http: fix close return value mismatch between doc and implementation 2024-02-26 16:07:39 +00:00
inspector.js inspector: use private fields instead of symbols 2023-11-19 22:35:19 +00:00
module.js
net.js lib: emit listening event once when call listen twice 2024-03-19 15:54:59 +00:00
os.js errors: improve hideStackFrames 2023-11-11 16:25:08 +00:00
path.js
perf_hooks.js
process.js
punycode.js
querystring.js
readline.js readline: use internal addAbortListener 2024-03-16 09:08:57 +00:00
repl.js lib: .load .save add proper error message when no file passed 2024-04-06 02:12:19 +00:00
sea.js sea: support sea.getRawAsset() 2024-02-02 15:25:34 +01:00
stream.js stream: support typed arrays 2024-03-20 17:27:29 +00:00
string_decoder.js lib: move encodingsMap to internal/util 2024-02-27 13:27:18 +01:00
sys.js
test.js test_runner: add suite() 2024-03-19 15:38:17 +00:00
timers.js timers: export timers.promises 2023-12-23 10:23:43 +00:00
tls.js
trace_events.js trace_events: use private fields instead of symbols for Tracing 2023-12-28 23:20:22 +00:00
tty.js errors: improve hideStackFrames 2023-11-11 16:25:08 +00:00
url.js
util.js util: support array of formats in util.styleText 2024-03-15 10:42:21 +00:00
v8.js v8: implement v8.queryObjects() for memory leak regression testing 2024-03-02 22:11:30 +00:00
vm.js vm: implement isContext() directly in JS land with private symbol 2024-02-16 08:12:35 +00:00
wasi.js
worker_threads.js
zlib.js zlib: pause stream if outgoing buffer is full 2024-02-14 14:27:34 -03:00