node/lib/internal
bcoe eddde6c31a
errors: don't rekey on primitive type
If an error is thrown before a module is loaded, we attempt to cache
source map against error object, rather than module object. We
can't do this if the error is a primitive type

Fixes #38945

PR-URL: https://github.com/nodejs/node/pull/39025
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-06-21 21:48:23 -04:00
..
assert lib: avoid mutating Error.stackTraceLimit when it is not writable 2021-04-15 00:17:16 +02:00
bootstrap src: allow to negate boolean CLI flags 2021-06-21 18:30:42 -04:00
child_process child_process: retain reference to data with advanced serialization 2021-05-31 15:34:51 -04:00
cluster cluster: restructure to same prototype for cluster child 2021-03-05 09:49:37 -08:00
console readline: move utilities to internal modules 2021-05-03 13:34:48 +02:00
crypto crypto: fix aes crash when tag length too small 2021-06-21 11:08:05 -04:00
debugger debugger: rename internal library for clarity 2021-06-21 11:08:09 -04:00
dns dns: allow --dns-result-order to change default dns verbatim 2021-06-11 07:23:51 +02:00
fs lib: make primordials Promise methods safe 2021-06-14 08:17:31 +02:00
http2 lib: harden lint checks for globals 2021-04-29 13:45:43 +02:00
legacy lib: make process.binding('util') return only type checkers 2021-03-27 15:45:12 +00:00
main src: allow to negate boolean CLI flags 2021-06-21 18:30:42 -04:00
modules errors: don't rekey on primitive type 2021-06-21 21:48:23 -04:00
per_context lib: make primordials Promise methods safe 2021-06-14 08:17:31 +02:00
perf lib: refactor to reuse validators 2021-05-31 15:34:46 -04:00
policy
process src: allow to negate boolean CLI flags 2021-06-21 18:30:42 -04:00
readline readline: move utilities to internal modules 2021-05-03 13:34:48 +02:00
repl readline: move utilities to internal modules 2021-05-03 13:34:48 +02:00
source_map errors: don't rekey on primitive type 2021-06-21 21:48:23 -04:00
streams stream: fix pipeline pump 2021-06-14 19:31:04 -07:00
test lib: add support for JSTransferable as a mixin 2021-04-29 13:45:34 +02:00
util lib: refactor debuglog init 2021-06-12 19:39:38 -07:00
vm vm: add import assertion support 2021-03-23 11:03:18 -05:00
worker lib: harden lint checks for globals 2021-04-29 13:45:43 +02:00
abort_controller.js lib: add brand checks to AbortController and AbortSignal 2021-03-19 12:30:56 -07:00
assert.js
async_hooks.js async_hooks: switch between native and context hooks correctly 2021-06-11 07:24:55 +02:00
blob.js lib: harden lint checks for globals 2021-04-29 13:45:43 +02:00
blocklist.js net: allow net.BlockList to use net.SocketAddress objects 2021-04-02 06:16:42 -07:00
buffer.js buffer,errors: add missing n literal in range error string 2021-04-17 19:34:42 +02:00
child_process.js lib: change wording in lib/internal/child_process comment 2021-04-01 12:52:06 -07:00
cli_table.js lib: refactor to use primordials in lib/internal/cli_table 2021-04-05 18:20:38 -07:00
constants.js
dgram.js
dtrace.js
encoding.js tools: improve valid-typeof lint rule 2021-03-28 08:01:44 -07:00
error_serdes.js
errors.js errors: add ERR_DEBUGGER_STARTUP_ERROR 2021-06-21 11:08:07 -04:00
event_target.js lib: add WeakRef and FinalizationRegistry to primordials 2021-04-13 12:36:56 +02:00
fixed_queue.js
freelist.js
freeze_intrinsics.js doc: use HEAD instead of master for links 2021-05-17 09:11:28 +02:00
heap_utils.js
histogram.js
http.js http: fixup perf regression 2021-04-09 16:58:58 -07:00
idna.js dns: use url module instead of punycode for IDNA 2021-03-23 20:44:31 +01:00
inspector_async_hook.js
js_stream_socket.js
linkedlist.js
net.js
options.js src: allow to negate boolean CLI flags 2021-06-21 18:30:42 -04:00
priority_queue.js
querystring.js typings: add JSDoc Types to lib/querystring 2021-04-18 11:00:28 +02:00
readme.md
repl.js
socket_list.js
socketaddress.js net: fix typo 2021-04-08 10:33:09 +02:00
stream_base_commons.js
timers.js lib: revert primordials in a hot path 2021-04-19 10:23:01 +02:00
tls.js tls: tweak clientCertEngine argument parsing 2021-06-11 07:24:54 +02:00
trace_events_async_hooks.js
tty.js
url.js lib: include url in bootstrap snapshot and remove unnecessary lazy-loads 2021-06-02 13:22:16 -04:00
util.js lib: fix typos 2021-06-01 08:18:49 -04:00
v8_prof_polyfill.js lib: harden lint checks for globals 2021-04-29 13:45:43 +02:00
v8_prof_processor.js lib: load v8_prof_processor dependencies as ESM 2021-03-15 15:56:14 +01:00
validators.js typings: add types for internalBinding('fs') 2021-04-14 12:24:23 +02:00
watchdog.js
worker.js process: add 'worker' event 2021-05-17 09:11:36 +02:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.