node/lib
Ruben Bridgewater 6c913fb028
lib: remove return values from validation functions
This makes sure the validation functions do not cause any side
effects. Validation functions should ideally only validate the input
without any other effect. Since the input value must be known from
the callee, there is no reason to return the input value.

PR-URL: https://github.com/nodejs/node/pull/26809
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-27 17:05:13 +01:00
..
internal lib: remove return values from validation functions 2019-03-27 17:05:13 +01:00
_http_agent.js http: reduce usage of public util 2019-03-12 06:40:57 +01:00
_http_client.js lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
_http_common.js http: reduce usage of public util 2019-03-12 06:40:57 +01:00
_http_incoming.js
_http_outgoing.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
_http_server.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
_stream_duplex.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
_stream_passthrough.js
_stream_readable.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
_stream_transform.js stream: make sure 'readable' is emitted before ending the stream 2019-03-06 08:38:29 +00:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
_tls_common.js tls: support TLSv1.3 2019-03-20 07:48:25 -07:00
_tls_wrap.js tls: remove usage of public require('util') 2019-03-25 00:15:39 +01:00
.eslintrc.yaml tools: remove eslint rule no-let-in-for-declaration 2019-03-26 09:46:41 -07:00
assert.js lib: validate Error.captureStackTrace() calls 2019-03-23 02:55:55 +01:00
async_hooks.js async_hooks: remove deprecated emitBefore and emitAfter 2019-03-18 11:36:48 +01:00
buffer.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
child_process.js child_process: reduce internal usage of public require of util 2019-03-22 12:41:25 +08:00
cluster.js
console.js
constants.js
crypto.js crypto: expose KeyObject class 2019-03-17 10:53:58 +01:00
dgram.js dgram: remove usage of public require('util') 2019-03-23 18:37:39 +05:30
dns.js
domain.js domain: set .domain non-enumerable on resources 2019-03-13 00:07:42 +00:00
events.js lib: validate Error.captureStackTrace() calls 2019-03-23 02:55:55 +01:00
fs.js lib: rename validateMode to parseMode 2019-03-27 17:05:12 +01:00
http2.js
http.js
https.js https: remove usage of public require('util') 2019-03-23 18:40:24 +05:30
inspector.js
module.js
net.js tools: enable getter-return lint rule 2019-03-25 20:02:10 -04:00
os.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
path.js
perf_hooks.js perf_hooks: load internal/errors eagerly 2019-03-22 00:41:09 +01:00
process.js
punycode.js
querystring.js
readline.js readline: remove usage of require('util') 2019-03-23 12:18:32 +08:00
repl.js repl: fix terminal default setting 2019-03-25 16:28:07 +01:00
stream.js stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
string_decoder.js
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js timers: deprecate active() and _unrefActive() 2019-03-22 19:47:32 -07:00
tls.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
trace_events.js trace_events: remove usage of require('util') 2019-03-24 18:28:07 +08:00
tty.js tty: remove util.inherits usage 2019-03-25 00:26:49 +01:00
url.js lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
util.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
v8.js v8: integrate node-heapdump into core 2019-03-13 15:50:32 +00:00
vm.js
worker_threads.js worker: implement worker.moveMessagePortToContext() 2019-03-15 16:54:19 +01:00
zlib.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00