node/lib
Ruben Bridgewater 4b7a530f2b
lib: switch to object spread where possible
Use the object spread notation instead of using Object.assign.
It is not only easier to read it is also faster as of V8 6.8.

PR-URL: https://github.com/nodejs/node/pull/25104
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2018-12-20 13:14:46 +01:00
..
internal lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
_http_agent.js tools: capitalize sentences 2018-12-10 17:07:18 +01:00
_http_client.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_common.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_incoming.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_http_outgoing.js tools: capitalize sentences 2018-12-10 17:07:18 +01:00
_http_server.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_duplex.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_passthrough.js lib: use ES6 class inheritance style 2018-12-05 16:55:00 +01:00
_stream_readable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_transform.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_stream_wrap.js
_stream_writable.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
_tls_common.js tls: add min/max protocol version options 2018-11-22 09:14:58 -08:00
_tls_wrap.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
.eslintrc.yaml lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
assert.js assert: remove unused catch bindings 2018-11-06 10:58:42 -05:00
async_hooks.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
buffer.js lib: remove internalBinding('config').pendingDeprecation 2018-12-14 21:22:59 -08:00
child_process.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
crypto.js src,lib: make process.binding('config') internal 2018-12-05 11:47:05 -08:00
dgram.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
dns.js dns: simplify dns.promises warning logic 2018-12-04 11:32:45 -08:00
domain.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
events.js events: simplify stack compare function 2018-12-19 17:12:00 +01:00
fs.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js
https.js lib: use ES6 class inheritance style 2018-12-05 16:55:00 +01:00
inspector.js inspector: move process.binding to internalBinding 2018-12-13 05:30:51 +01:00
module.js
net.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
os.js os: move process.binding('os') to internalBinding 2018-12-20 05:29:16 +01:00
path.js path: replace assertPath() with validator 2018-12-06 19:57:11 -08:00
perf_hooks.js tools: enable no-useless-constructor lint rule 2018-12-16 20:30:50 -08:00
process.js
punycode.js
querystring.js querystring: remove eslint-disable 2018-12-14 13:13:43 -05:00
readline.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
repl.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
stream.js tools: lint for unused catch bindings 2018-11-06 10:59:27 -05:00
string_decoder.js
sys.js
timers.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tls.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
trace_events.js src,lib: make process.binding('config') internal 2018-12-05 11:47:05 -08:00
tty.js Revert "tty: make _read throw ERR_TTY_WRITABLE_NOT_READABLE" 2018-10-04 09:20:21 -07:00
url.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
util.js util: format() now formats bigint and booleans 2018-12-19 16:31:11 +01:00
v8.js tools: enable no-useless-constructor lint rule 2018-12-16 20:30:50 -08:00
vm.js lib: switch to object spread where possible 2018-12-20 13:14:46 +01:00
worker_threads.js
zlib.js zlib: split JS code as prep for non-zlib-backed streams 2018-12-18 16:24:37 +01:00