0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal
Rich Trott 58fc172bfa assert: remove unreachable code
There is only one entry in `kReadableOperator` that ends in `Unequal`.
So the value assigned on line 392 can only be truthy if `operator` is
`notDeepEqual`. Therefore, the ternary condition on line 394 is always
true. Remove the ternary. Coverage reports confirm that the removed code
is unused.

PR-URL: https://github.com/nodejs/node/pull/27840
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-05-25 10:59:30 -07:00
..
assert assert: remove unreachable code 2019-05-25 10:59:30 -07:00
bootstrap src, lib: take control of prepareStackTrace 2019-05-21 15:39:09 -05:00
cluster lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
console console: don't attach unnecessary error handlers 2019-05-16 11:55:32 -04:00
crypto lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
dns dns: refactor internal/dns/promises.js 2019-04-16 16:19:14 -07:00
fs fs: extract path conversion and validation to getValidatedPath 2019-05-14 15:13:48 -07:00
http2 http2: support net.Server options 2019-05-23 05:35:19 +02:00
main repl: do not run --eval code if there is none 2019-05-12 15:04:27 +02:00
modules esm: refactor createDynamicModule() 2019-05-24 08:33:53 -04:00
per_context bootstrap: delay the instantiation of maps in per-context scripts 2019-04-26 07:23:42 +02:00
policy
process process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
repl repl: handle stage-3 language features properly 2019-04-30 16:22:57 +02:00
streams lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
test
util util: include reference anchor for circular structures 2019-05-20 14:20:59 +02:00
vm module: initialize module_wrap.callbackMap during pre-execution 2019-04-25 12:11:10 +08:00
worker worker: add ability to unshift message from MessagePort 2019-05-19 22:01:34 +02:00
assert.js lib: throw a special error in internal/assert 2019-04-25 01:29:48 +02:00
async_hooks.js async_hooks: only disable promise hook if wanted 2019-05-13 12:47:45 +02:00
buffer.js buffer,errors: improve bigint, big numbers and more 2019-05-01 12:29:04 +02:00
child_process.js child_process: setup stdio on error when possible 2019-05-20 09:33:10 -04:00
cli_table.js
constants.js
dgram.js src: move guessHandleType in the util binding 2019-04-20 13:25:41 +08:00
dtrace.js
encoding.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
error-serdes.js
errors.js src, lib: take control of prepareStackTrace 2019-05-21 15:39:09 -05:00
fixed_queue.js
freelist.js
freeze_intrinsics.js bootstrap: --frozen-intrinsics unfreeze console 2019-05-20 05:21:01 +02:00
http.js
idna.js
inspector_async_hook.js
js_stream_socket.js stream: use readableObjectMode public api for js stream 2019-05-19 23:37:51 +02:00
linkedlist.js
net.js
options.js
priority_queue.js
querystring.js
readline.js
readme.md
repl.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
socket_list.js
stream_base_commons.js util: access process states lazily in debuglog 2019-04-20 00:30:38 +08:00
timers.js lib: remove Reflect.apply where appropriate 2019-04-30 08:36:55 +02:00
tls.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
trace_events_async_hooks.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
tty.js
url.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
util.js tools: enable block-scoped-var eslint rule 2019-05-10 16:58:49 +02:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js
worker.js process: improve cwd performance 2019-04-26 18:43:11 +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 modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.