node/lib/internal
Mohammed Keyvanzadeh 7f5679b901
tls: use logical OR operator
Use the logical OR operator instead of the ternary operator where
applicable.

PR-URL: https://github.com/nodejs/node/pull/44236
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2022-08-16 21:34:56 +00:00
..
assert assert: add getCalls and reset to callTracker 2022-08-11 19:27:34 +00:00
bootstrap src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
child_process child_process: improve ipc write performance 2022-06-19 16:10:53 +02:00
cluster cluster: send connection to other server when worker drop it 2022-07-24 11:18:33 +01:00
console lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
crypto crypto: allow zero-length IKM in HKDF and in webcrypto PBKDF2 2022-08-12 21:36:29 +02:00
debugger src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
dns lib: add diagnostics channel and perf hooks detail 2022-07-29 14:27:16 +01:00
fs fs: use signed types for stat data 2022-07-18 16:35:14 +01:00
http2 tls,http2: send fatal alert on ALPN mismatch 2022-08-13 07:25:23 +00:00
legacy lib: make process.binding('util') return only type checkers 2021-03-27 15:45:12 +00:00
main src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
modules src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
per_context lib: add Promise methods to avoid-prototype-pollution lint rule 2022-07-26 23:38:24 +01:00
perf src: per-environment time origin value 2022-07-16 16:46:40 +08:00
policy lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
process report: skip report if uncaught exception is handled 2022-08-16 21:04:48 +08:00
readline readline: fix to not access a property on an undefined value 2022-06-28 11:10:50 +01:00
repl repl: fix overzealous top-level await 2022-07-15 20:30:50 +01:00
source_map src,lib: print prinstine source when source map source not found 2022-08-06 19:56:27 +08:00
streams lib: add Promise methods to avoid-prototype-pollution lint rule 2022-07-26 23:38:24 +01:00
test lib: add support for JSTransferable as a mixin 2021-04-26 07:55:48 -07:00
test_runner test_runner: refactor to use more primordials 2022-08-04 04:03:28 +00:00
tls tls: use logical OR operator 2022-08-16 21:34:56 +00:00
util src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
v8 bootstrap: support more builtins in the embedded code cache 2022-08-05 01:11:20 +08:00
vm lib: implement safe alternatives to Promise static methods 2022-07-10 14:17:23 +01:00
webstreams stream: improve views validation on BYOBRequest 2022-08-15 18:46:13 +00:00
worker lib: refactor transferable AbortSignal 2022-08-04 08:40:50 -07:00
abort_controller.js lib: refactor transferable AbortSignal 2022-08-04 08:40:50 -07:00
assert.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
async_hooks.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
blob.js lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +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: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
cli_table.js lib: refactor to use primordials in lib/internal/cli_table 2021-04-05 18:20:38 -07:00
constants.js lib: replace charCodeAt with fixed Unicode 2020-06-19 07:46:37 -07:00
dgram.js lib: refactor to use validateFunction 2021-01-27 20:46:54 +02:00
encoding.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
error_serdes.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
errors.js errors: refactor to use optional chaining 2022-08-13 18:04:37 +08:00
event_target.js events: use bitset to save memory 2022-08-10 13:01:10 +02:00
fixed_queue.js lib: unnecessary const assignment for class 2020-04-24 22:53:36 +03:00
freelist.js http: remove unused hasItems() from freelist 2019-12-03 15:00:45 -08:00
freeze_intrinsics.js lib: fix TODO in freeze_intrinsics 2022-06-27 16:15:16 +01:00
heap_utils.js worker: add ability to take heap snapshot from parent thread 2020-02-03 07:04:13 -08:00
histogram.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
http.js http: trace http request / response 2022-08-05 14:25:06 +00:00
idna.js dns: use url module instead of punycode for IDNA 2021-03-23 20:44:31 +01:00
inspector_async_hook.js async_hooks: refactor to use more primordials 2020-11-20 20:10:19 +00:00
js_stream_socket.js tools: enable no-var ESLint rule for lib 2022-04-04 10:53:29 +00:00
linkedlist.js cluster: use linkedlist for round_robin_handle 2021-11-28 21:39:10 -08:00
net.js net: refactor to use more primordials 2020-12-07 10:08:03 -08:00
options.js bootstrap: refresh options in pre-execution 2022-03-31 19:29:08 +08:00
priority_queue.js lib: refactor PriorityQueue to use private field 2022-07-23 21:44:18 +01:00
promise_hooks.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
querystring.js typings: add JSDoc Types to lib/querystring 2021-04-18 11:00:28 +02:00
readme.md
repl.js lib: use Number.parseInt from primordials 2020-10-07 13:44:20 +00:00
socket_list.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
socketaddress.js net: fix typo 2021-04-08 10:33:09 +02:00
stream_base_commons.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
structured_clone.js lib: throw error in structuedClone when no arguments are passed 2022-01-24 23:17:37 +00:00
timers.js timers: refactor internal classes to ES2015 syntax 2022-04-04 09:43:49 +01:00
trace_events_async_hooks.js lib: comment explaining special-case handling of promises 2021-07-23 03:54:33 +00:00
tty.js lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
url.js lib: reset RegExp statics before running user code 2022-08-05 10:01:32 +02:00
util.js lib: reset RegExp statics before running user code 2022-08-05 10:01:32 +02:00
v8_prof_polyfill.js tools: add console to the list of restricted globals 2022-02-19 19:00:55 +00:00
v8_prof_processor.js lib: refactor to avoid unsafe array iteration 2021-10-03 09:48:07 +00:00
validators.js test_runner: validate timeout option 2022-07-24 23:11:16 +02:00
wasm_web_api.js bootstrap: support more builtins in the embedded code cache 2022-08-05 01:11:20 +08:00
watchdog.js test: add semicolons for linter update 2021-11-08 13:16:21 -08:00
worker.js src: per-environment time origin value 2022-07-16 16:46:40 +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.