node/lib/internal
Morgan Roderick becca06f9b
fs: remove unnecessary ?? operator
This was introduced in 57678e5581

With the `if` conditional around this statement, `options` will always
be evaluated as truthy. That means that the nullish coalescing operator
will always evaluate to the left side, make it unnecessary.

PR-URL: https://github.com/nodejs/node/pull/43073
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
2022-05-16 11:12:18 +01:00
..
assert assert: fix CallTracker wraps the function causes the length to be lost 2022-05-10 09:13:19 -03:00
bootstrap lib: move WebAssembly Web API into separate file 2022-05-10 09:13:20 -03:00
child_process
cluster cluster: respect listen backlog set by workers 2022-02-10 22:58:10 +01:00
console errors,console: refactor to use ES2021 syntax 2022-05-02 14:39:29 +02:00
crypto crypto: adjust minimum length in generateKey('hmac', ...) 2022-05-10 09:13:17 -03:00
debugger debugger: fix inconsistent inspector output of exec new Map() 2022-05-10 09:13:20 -03:00
dns dns: remove dns.lookup and dnsPromises.lookup options type coercion 2022-04-12 05:50:11 +02:00
fs fs: remove unnecessary ?? operator 2022-05-16 11:12:18 +01:00
http2 http2: compat support for array headers 2022-05-10 09:13:16 -03:00
legacy
main test_runner: add initial CLI runner 2022-04-28 06:56:10 +02:00
modules esm: fix imports from non-file module 2022-05-02 14:39:32 +02:00
per_context bootstrap: stop delaying instantiation of maps in per-context scripts 2022-05-10 09:13:18 -03:00
perf perf_hooks: add PerformanceResourceTiming 2022-05-16 11:12:16 +01:00
policy esm: support https remotely and http locally under flag 2022-02-09 19:47:12 -08:00
process esm: emit experimental warnings in common place 2022-03-28 22:43:15 +01:00
readline readline: fix question still called after closed 2022-04-08 11:17:03 +01:00
repl tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-05 07:42:19 -08:00
source_map lib: source maps filter null prefix 2022-04-03 17:21:38 +01:00
streams stream: remove thenable support 2022-04-08 11:29:24 +01:00
test
test_runner test_runner: add initial CLI runner 2022-04-28 06:56:10 +02:00
tls tls: move tls.parseCertString to end-of-life 2022-01-15 17:00:25 +01:00
util lib: add comments to empty catch statements 2022-02-05 12:58:30 +00:00
vm errors,vm: update error and use cause 2022-04-28 06:57:23 +02:00
webstreams stream: use .chunk when calling adapters's writev 2022-03-03 04:53:59 +00:00
worker worker: add hasRef() to MessagePort 2022-05-02 14:39:33 +02:00
abort_controller.js lib: update class fields TODO in abort_controller.js 2022-03-23 20:07:53 +08:00
assert.js
async_hooks.js tools: enable no-var ESLint rule for lib 2022-04-04 10:53:29 +00:00
blob.js buffer: improve Blob constructor error message when passing a string 2022-04-04 20:14:39 +01:00
blocklist.js
buffer.js
child_process.js child_process: queue pending messages 2021-12-30 05:59:49 -08:00
cli_table.js
constants.js
dgram.js
dtrace.js
encoding.js lib: move kEnumerableProperty to internal/util 2022-02-11 17:30:47 +00:00
error_serdes.js lib: add comments to empty catch statements 2022-02-05 12:58:30 +00:00
errors.js errors,console: refactor to use ES2021 syntax 2022-05-02 14:39:29 +02:00
event_target.js lib: use class fields in Event and EventTarget 2022-03-23 20:07:55 +08:00
fixed_queue.js
freelist.js
freeze_intrinsics.js lib: add legacy built-in functions to primordials 2022-02-21 12:32:49 +01:00
heap_utils.js
histogram.js perf_hooks: multiple fixes for Histogram 2021-12-19 09:56:36 -08:00
http.js http: trace http client by perf_hooks 2022-03-18 15:15:08 +00:00
idna.js
inspector_async_hook.js
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
options.js bootstrap: refresh options in pre-execution 2022-03-31 19:29:08 +08:00
priority_queue.js
promise_hooks.js v8: multi-tenant promise hook api 2021-11-01 11:08:59 -07:00
querystring.js
readme.md
repl.js
socket_list.js
socketaddress.js
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
tty.js tty: support more CI services in getColorDepth 2021-10-23 08:50:56 +02:00
url.js url: preserve null char in WHATWG URL errors 2022-03-11 05:51:41 +00:00
util.js lib: move kEnumerableProperty to internal/util 2022-02-11 17:30:47 +00: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 lib: improve the coverage of the validator 2022-04-02 23:57:44 +01:00
wasm_web_api.js lib: move WebAssembly Web API into separate file 2022-05-10 09:13:20 -03:00
watchdog.js test: add semicolons for linter update 2021-11-08 13:16:21 -08: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.