0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Anna Henningsen ddefa0f2c5
worker: enable stdio
Provide `stdin`, `stdout` and `stderr` options for the `Worker`
constructor, and make these available to the worker thread
under their usual names.

The default for `stdin` is an empty stream, the default for
`stdout` and `stderr` is redirecting to the parent thread’s
corresponding stdio streams.

PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
2018-06-06 19:43:56 +02:00
..
bootstrap worker: initial implementation 2018-06-06 19:43:52 +02:00
cluster cluster: remove obsolete array allocation 2018-05-18 15:27:29 +02:00
crypto string_decoder: lazy loaded 2018-05-18 15:25:38 +02:00
fs fs: do not crash when using a closed fs event watcher 2018-06-03 17:15:17 +02:00
http2 http2: fix premature destroy 2018-06-03 16:24:31 +02:00
modules worker: implement MessagePort and MessageChannel 2018-06-06 19:43:44 +02:00
process worker: enable stdio 2018-06-06 19:43:56 +02:00
repl repl: support top-level await 2017-11-16 15:42:46 -08:00
streams stream: ensure Stream.pipeline re-throws errors without callback 2018-05-31 11:22:54 +02:00
test src: put bootstrappers in lib/internal/bootstrap/ 2018-03-15 20:50:34 +08:00
util worker: initial implementation 2018-06-06 19:43:52 +02:00
vm module: introduce defaultModuleName in module.js 2018-05-16 07:47:24 +02:00
assert.js assert: support symbols as assertion messages 2018-05-14 23:43:25 -04:00
async_hooks.js async_hooks: add copyHooks function 2018-03-20 07:42:00 +01:00
buffer.js buffer: do not always use defaults 2018-04-29 16:52:46 +02:00
child_process.js string_decoder: lazy loaded 2018-05-18 15:25:38 +02:00
cli_table.js console: add table method 2018-03-30 19:41:41 -05:00
constants.js os: lazy loaded 2018-05-18 15:25:41 +02:00
encoding.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
errors.js worker: restrict supported extensions 2018-06-06 19:43:55 +02:00
fixed_queue.js lib: expose FixedQueue internally and fix nextTick bug 2018-05-06 07:21:32 +02:00
freelist.js lib: update indentation of ternaries 2017-07-17 22:09:46 -07:00
http.js http: convert utcDate to use setTimeout 2017-12-29 00:08:54 +01:00
inspector_async_hook.js async_hooks: lazy loading for startup performance 2018-05-18 15:32:10 +02:00
linkedlist.js linkedlist: correct grammar in comments 2017-07-31 08:03:19 +08:00
net.js net: track bytesWritten in C++ land 2018-03-30 14:20:40 +02:00
os.js os: add CIDR support 2017-08-14 15:43:10 -04:00
priority_queue.js lib: add internal PriorityQueue class 2018-05-22 23:24:37 +04:00
process.js worker: initial implementation 2018-06-06 19:43:52 +02:00
querystring.js lib: use Object.create(null) directly 2017-03-24 15:25:49 -07:00
readline.js lib,test: lint fixes for linter upgrade 2018-03-24 04:11:40 -07:00
readme.md doc: limit lines to 80 cols in internal README 2017-04-13 15:30:10 -07:00
repl.js lib: switch to Number.isNaN 2018-02-16 18:09:56 +01:00
safe_globals.js module: Allow runMain to be ESM 2017-09-07 15:18:32 -05:00
socket_list.js lib: port remaining errors to new system 2018-03-07 14:54:38 +01:00
stream_base_commons.js net,http2: merge write error handling & property names 2018-04-12 15:39:36 +02:00
timers.js timers: use only a single TimerWrap instance 2018-05-22 23:26:12 +04:00
tls.js tls: deprecate parseCertString & move to internal 2017-09-13 16:54:35 -03:00
trace_events_async_hooks.js lib: lazy loaded 2018-05-18 15:31:57 +02:00
tty.js os: lazy loaded 2018-05-18 15:25:41 +02:00
url.js querystring: lazy loaded 2018-05-18 15:25:39 +02:00
util.js util: improve spliceOne perf 2018-05-03 14:47:17 +02:00
v8_prof_polyfill.js tools, test: fix prof polyfill readline 2018-02-17 10:06:53 -02:00
v8_prof_processor.js lib: define printErr() in script string 2018-03-12 08:45:13 -07:00
validators.js lib: unmask mode_t values with 0o777 2018-06-01 11:12:10 +02:00
worker.js worker: enable stdio 2018-06-06 19:43:56 +02:00
wrap_js_stream.js net: honor default values in Socket constructor 2018-04-23 17:15:07 +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 are subject to change at any time. Reliance on these modules outside of core is not supported in any way.