mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
4d798e1b1b
Due to how bootstrap/loaders.js itself is loaded and invoked, stacktraces from it are munged and no longer point back to the error source. That resulted in the following unhelpful error if an internal module was missing or misnamed: ``` internal/bootstrap/loaders.js:190 return mod.compile(); ^ TypeError: Cannot read property 'compile' of undefined ``` This changes that to at least print the id that was attempted to be loaded: ``` internal/bootstrap/loaders.js:189 if (!mod) throw new TypeError(`Missing internal module '${id}'`); ^ TypeError: Missing internal module 'internal/a' ``` PR-URL: https://github.com/nodejs/node/pull/29593 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> |
||
---|---|---|
.. | ||
assert | ||
bootstrap | ||
cluster | ||
console | ||
crypto | ||
dns | ||
fs | ||
http2 | ||
main | ||
modules | ||
per_context | ||
policy | ||
process | ||
readline | ||
repl | ||
streams | ||
test | ||
util | ||
vm | ||
worker | ||
assert.js | ||
async_hooks.js | ||
buffer.js | ||
child_process.js | ||
cli_table.js | ||
constants.js | ||
dgram.js | ||
dtrace.js | ||
encoding.js | ||
error-serdes.js | ||
errors.js | ||
fixed_queue.js | ||
freelist.js | ||
freeze_intrinsics.js | ||
http.js | ||
idna.js | ||
inspector_async_hook.js | ||
js_stream_socket.js | ||
linkedlist.js | ||
net.js | ||
options.js | ||
priority_queue.js | ||
querystring.js | ||
readme.md | ||
repl.js | ||
socket_list.js | ||
stream_base_commons.js | ||
timers.js | ||
tls.js | ||
trace_events_async_hooks.js | ||
tty.js | ||
url.js | ||
util.js | ||
v8_prof_polyfill.js | ||
v8_prof_processor.js | ||
validators.js | ||
worker.js |
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.