0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Ruben Bridgewater 1ed3c54ecb
errors: update error name
This updates all Node.js errors by removing the `code` being part
of the `name` property. Instead, the name is just changed once on
instantiation, the stack is accessed to create the stack as expected
and then the `name` property is set back to it's original form.

PR-URL: https://github.com/nodejs/node/pull/26738
Fixes: https://github.com/nodejs/node/issues/26669
Fixes: https://github.com/nodejs/node/issues/20253
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2019-03-23 02:55:54 +01:00
..
assert errors: update error name 2019-03-23 02:55:54 +01:00
bootstrap worker: create per-Environment message port after bootstrap 2019-03-19 21:00:48 +08:00
cluster lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
console console: don't use ANSI escape codes when TERM=dumb 2019-03-21 23:32:59 +01:00
crypto crypto: add support for EdDSA key pair generation 2019-03-18 21:59:47 +01:00
dns dns: use IDNA 2008 to encode non-ascii hostnames 2019-01-28 20:42:44 +01:00
fs lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
http2 errors: update error name 2019-03-23 02:55:54 +01:00
main lib: run prepareMainThreadExecution for third_party_main 2019-03-19 05:45:21 +01:00
modules module: do not share the internal require function with public loaders 2019-03-19 04:05:38 +08:00
per_context src,lib: make DOMException available in all Contexts 2019-03-15 16:54:19 +01:00
policy lib: use internal/options to query --abort-on-uncaught-exception 2019-02-08 08:09:56 +08:00
process worker: create per-Environment message port after bootstrap 2019-03-19 21:00:48 +08:00
repl repl: remove usage of require('util') in repl/history 2019-03-23 00:16:02 +08:00
streams stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
test src: replace heap_utils.createHeapSnapshot with v8.getHeapSnapshot 2019-03-19 01:04:51 +08:00
util util: extract uncurryThis function for reuse 2019-03-21 23:07:48 +01:00
vm lib: save primordials during bootstrap and use it in builtins 2019-02-02 05:40:47 +08:00
worker worker: remove usage of require('util') 2019-03-23 00:09:48 +08:00
assert.js assert: add internal assert.fail() 2019-02-14 00:00:50 +01:00
async_hooks.js src: forbid access to CLI options before bootstrapping is done 2019-03-09 14:03:02 +01:00
buffer.js buffer: move Buffer prototype wiring into internal/buffer.js 2019-01-10 16:59:27 +08:00
child_process.js lib: remove usage of require('util') 2019-03-22 00:07:32 +08:00
cli_table.js lib,test: remove lib/internal/test/unicode.js 2019-01-03 10:25:59 -08:00
constants.js os: lazy loaded 2018-05-18 15:25:41 +02:00
dgram.js bootstrapper: move internalBinding to NativeModule 2018-10-04 11:55:34 +02:00
dtrace.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
encoding.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
error-serdes.js lib: lazy load v8 in error-serdes 2019-03-19 07:59:47 +01:00
errors.js errors: update error name 2019-03-23 02:55:54 +01:00
fixed_queue.js lib: expose FixedQueue internally and fix nextTick bug 2018-05-06 07:21:32 +02:00
freelist.js async_hooks: add missing async_hooks destroys in AsyncReset 2018-10-10 08:45:56 +02:00
freeze_intrinsics.js bootstrap: experimental --frozen-intrinsics flag 2019-03-04 16:34:33 +02:00
http.js http,https: protect against slow headers attack 2018-11-28 11:36:34 +11:00
idna.js lib: convert legacy process.binding to internalBinding 2019-02-18 07:21:48 +01:00
inspector_async_hook.js process: register the inspector async hooks in bootstrap/node.js 2019-01-16 16:19:22 +08:00
js_stream_socket.js stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
linkedlist.js linkedlist: correct grammar in comments 2017-07-31 08:03:19 +08:00
net.js fs: make process.binding('fs') internal 2018-11-16 21:56:29 +09:00
options.js src: cache the result of GetOptions() in JS land 2018-11-07 20:40:38 -08:00
priority_queue.js timers: fix priority queue removeAt 2018-11-14 20:38:00 -08:00
profiler.js src: refactor coverage connection 2019-03-12 07:03:53 +08:00
querystring.js lib: move encodeStr function to internal for reusable 2018-11-20 18:24:02 -08:00
readline.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
readme.md doc: clarify text about internal module changes 2018-07-31 08:28:40 +03:00
repl.js repl: add replDefaults to customize the writer 2019-03-08 04:44:56 +01:00
socket_list.js lib: convert to arrow function 2018-11-26 20:34:32 +05:30
stream_base_commons.js tls: support TLSv1.3 2019-03-20 07:48:25 -07:00
timers.js timers: move big impl comment to /internal/ 2019-03-20 17:11:32 -07:00
tls.js tls: change var to const 2018-08-12 10:44:53 -07:00
trace_events_async_hooks.js process: simplify the setup of async hooks trace events 2019-02-21 10:47:28 +08:00
tty.js tty: add NO_COLOR and FORCE_COLOR support 2019-03-19 16:41:22 +01:00
url.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
util.js util: extract uncurryThis function for reuse 2019-03-21 23:07:48 +01:00
v8_prof_polyfill.js v8_prof_polyfill: remove unused catch bindings 2018-11-06 10:59:04 -05:00
v8_prof_processor.js lib: convert to Arrow Function 2018-11-28 14:59:07 +05:30
validators.js fs: improve mode validation 2019-03-15 17:38:12 +01:00
worker.js lib: explicitly initialize debuglog during bootstrap 2019-03-08 13:57:38 +01: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.