0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/lib/internal
Joyee Cheung d18b0a0132
process: make tick callback and promise rejection callback more robust
- Rename `internalTickCallback` to `processTicksAndRejections`, make
  sure it does not get called if it's not set in C++.
- Rename `emitPromiseRejectionWarnings` to `processPromiseRejections`
  since it also emit events that are not warnings.
- Sets `SetPromiseRejectCallback` in the `Environment` constructor
  to make sure it only gets called once per-isolate, and make
  sure it does not get called if it's not set in C++.
- Wrap promise rejection callback initialization into
  `listenForRejections()`.
- Add comments.

PR-URL: https://github.com/nodejs/node/pull/25200
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-01-06 10:28:47 +08:00
..
bootstrap src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
cluster lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
console process: move eval and exception bootstrap ito process/execution.js 2018-12-31 14:19:48 +08:00
crypto crypto: add key object API 2018-12-24 14:50:16 +01:00
dns lib: refactor argument validation using validateString 2018-12-13 17:22:43 -08:00
fs lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
http2 lib: simplify several debug() calls 2018-12-29 13:51:35 -05:00
modules lib: simplify several debug() calls 2018-12-29 13:51:35 -05:00
process process: make tick callback and promise rejection callback more robust 2019-01-06 10:28:47 +08:00
repl tools: capitalize sentences 2018-12-10 17:07:18 +01:00
streams doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
test lib,test: remove lib/internal/test/unicode.js 2019-01-03 10:25:59 -08:00
util src: use internalBinding('config').hasInspector in JS land 2019-01-05 01:25:31 +08:00
vm lib: refactor argument validation using validateString 2018-12-13 17:22:43 -08:00
worker worker: improve JS-side debugging 2019-01-04 19:27:38 +01:00
assert.js assert: inspect getters 2018-12-18 12:34:08 +01:00
async_hooks.js src,lib: make process.binding('config') internal 2018-12-05 11:47:05 -08:00
bash_completion.js
buffer.js buffer: remove checkNumberType() 2018-12-05 14:46:33 -08:00
child_process.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
cli_table.js lib,test: remove lib/internal/test/unicode.js 2019-01-03 10:25:59 -08:00
constants.js
dgram.js
domexception.js
encoding.js lib: expose all type checks from the internal types module 2018-12-27 22:34:47 +01:00
error-serdes.js
errors.js zlib: add brotli support 2019-01-05 21:36:46 +01:00
fixed_queue.js
freelist.js
http.js
inspector_async_hook.js inspector: move process.binding to internalBinding 2018-12-13 05:30:51 +01:00
js_stream_socket.js src: use consistent names for JSStream 2018-12-28 12:57:46 -08:00
linkedlist.js
net.js
options.js
per_context.js src: use NativeModuleLoader to compile all the bootstrappers 2018-12-04 05:54:49 +08:00
print_help.js src: add kUInteger parsing 2018-12-20 09:31:52 -05:00
priority_queue.js
querystring.js
queue_microtask.js process: make internal/queue_microtask.js more self-contained 2018-12-29 18:58:39 +08:00
readline.js lib: remove some useless assignments 2018-12-05 15:57:26 -08:00
readme.md
repl.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
safe_globals.js
socket_list.js
stream_base_commons.js
timers.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tls.js
trace_events_async_hooks.js
tty.js
url.js lib: remove internal util._extends() usage 2018-12-20 13:52:44 +01:00
util.js process: move eval and exception bootstrap ito process/execution.js 2018-12-31 14:19:48 +08:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js
worker.js process: move worker bootstrap code into worker_thread_only.js 2018-12-31 14:19:51 +08: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.