node/lib/internal
Rich Trott 51d86fe6a0
stream: remove always-false condition check
Remove comparison to null of variable guaranteed to be a boolean.

PR-URL: https://github.com/nodejs/node/pull/41488
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2022-01-16 15:01:09 +01:00
..
assert test: add semicolons for linter update 2021-11-21 16:07:29 +01:00
bootstrap tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-14 16:20:12 +01:00
child_process child_process: retain reference to data with advanced serialization 2021-05-23 16:25:50 +02:00
cluster cluster: use linkedlist for round_robin_handle 2021-12-13 17:14:01 -05:00
console console: fix prototype pollution via console.table 2022-01-07 22:18:34 +00:00
crypto tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-14 16:20:12 +01:00
debugger lib: refactor to use let 2021-10-09 17:22:56 +00:00
dns dns: refactor and use validators 2021-09-18 16:13:56 +02:00
fs fs: use async directory processing in cp() 2022-01-14 16:19:44 +01:00
http2 tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-14 16:20:12 +01:00
legacy lib: make process.binding('util') return only type checkers 2021-03-27 15:45:12 +00:00
main lib: fix checking syntax of esm module 2022-01-14 16:19:31 +01:00
modules tools: enable ESLint no-sparse-arrays rule 2022-01-14 16:22:50 +01:00
per_context url,lib: pass urlsearchparams-constructor.any.js 2022-01-14 16:22:48 +01:00
perf perf_hooks: multiple fixes for Histogram 2022-01-14 16:19:30 +01:00
policy policy: add missing JSDoc @param entry 2022-01-14 16:19:32 +01:00
process esm: make process.exit() default to exit code 0 2022-01-14 16:22:50 +01:00
readline readline: skip escaping characters again 2021-12-13 17:14:05 -05:00
repl tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-14 16:20:12 +01:00
source_map lib: remove spurious JSDoc entry 2022-01-14 16:19:33 +01:00
streams stream: remove always-false condition check 2022-01-16 15:01:09 +01:00
test lib: add support for JSTransferable as a mixin 2021-04-26 07:55:48 -07:00
tls tls: use optional chaining to simplify checks 2022-01-14 16:19:49 +01:00
util tools,lib,test: enable ESLint no-regex-spaces rule 2022-01-14 16:22:51 +01:00
vm vm: add import assertion support 2021-03-23 11:03:18 -05:00
webstreams stream: remove unused function argument 2022-01-14 16:20:14 +01:00
worker events: protect property defs against prototype polution 2021-08-25 08:21:00 -07:00
abort_controller.js lib: make AbortSignal cloneable/transferable 2021-12-13 17:14:19 -05:00
assert.js
async_hooks.js async_hooks: fix AsyncLocalStorage in unhandledRejection cases 2022-01-14 16:19:32 +01:00
blob.js lib,tools: remove empty lines between JSDoc tags 2022-01-14 16:19:28 +01: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 child_process: queue pending messages 2022-01-14 16:19:43 +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
dgram.js lib: refactor to use validateFunction 2021-01-27 20:46:54 +02:00
dtrace.js
encoding.js lib: use validateObject 2021-08-12 13:51:08 -07:00
error_serdes.js tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-14 16:20:12 +01:00
errors.js crypto,tls: implement safe x509 GeneralName format 2022-01-08 00:38:18 +00:00
event_target.js events: clarify JSDoc entries 2022-01-14 16:19:41 +01:00
fixed_queue.js
freelist.js
freeze_intrinsics.js doc: use HEAD instead of master for links 2021-05-05 10:45:30 +02:00
heap_utils.js
histogram.js perf_hooks: multiple fixes for Histogram 2022-01-14 16:19:30 +01:00
http.js perf_hooks: refactor perf_hooks for snapshot building 2021-06-28 16:20:12 +08: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 Revert "async_hooks: merge resource_symbol with owner_symbol" 2021-11-21 16:08:36 +01:00
linkedlist.js cluster: use linkedlist for round_robin_handle 2021-12-13 17:14:01 -05:00
net.js net: refactor to use more primordials 2020-12-07 10:08:03 -08:00
options.js src: get embedder options on-demand 2021-10-16 10:03:50 +08:00
priority_queue.js lib: remove unused code 2020-12-29 15:49:09 +00:00
promise_hooks.js v8: multi-tenant promise hook api 2021-11-06 10:59:58 +01:00
querystring.js typings: add JSDoc Types to lib/querystring 2021-04-18 11:00:28 +02:00
readme.md
repl.js
socket_list.js
socketaddress.js net: fix typo 2021-04-08 10:33:09 +02:00
stream_base_commons.js tls: improve handling of shutdown 2021-12-13 17:14:15 -05:00
structured_clone.js lib: make structuredClone spec compliant 2021-10-03 15:19:58 +00:00
timers.js timers: use ref counts to count timers 2022-01-14 16:19:46 +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 tty: support more CI services in getColorDepth 2021-10-23 08:54:02 +02:00
url.js url,lib: pass urlsearchparams-constructor.any.js 2022-01-14 16:22:48 +01:00
util.js perf_hooks: use spec-compliant structuredClone 2021-12-13 17:14:02 -05:00
v8_prof_polyfill.js lib: harden lint checks for globals 2021-04-28 13:13:23 -07:00
v8_prof_processor.js lib: refactor to avoid unsafe array iteration 2021-10-03 09:48:07 +00:00
validators.js v8: multi-tenant promise hook api 2021-11-06 10:59:58 +01:00
watchdog.js test: add semicolons for linter update 2021-11-21 16:07:29 +01:00
worker.js lib: use validateArray 2021-09-26 11:46:14 +00: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.