0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/lib
Weijia Wang 212de3c5ec
lib: use destructuring for some constants
This change is to unify the declaration for constants into using
destructuring on the top-level-module scope, reducing some redundant
code.

PR-URL: https://github.com/nodejs/node/pull/16063
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2017-10-16 23:34:32 +02:00
..
internal lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_agent.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_client.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_common.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_incoming.js
_http_outgoing.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_server.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_stream_transform.js stream: migrate to internal/errors 2017-10-01 20:37:00 -03:00
_stream_wrap.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_stream_writable.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_tls_common.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_tls_legacy.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_tls_wrap.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
.eslintrc.yaml tools: remove legacy indentation linting 2017-07-30 09:21:52 -07:00
assert.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
async_hooks.js async_hooks: fix reference in code comment 2017-10-03 06:24:54 -07:00
buffer.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
child_process.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
cluster.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
console.js console: improve console.group() 2017-08-25 11:29:33 -07:00
constants.js src: add support to pass flags to dlopen 2017-09-08 17:14:03 -04:00
crypto.js crypto: make createXYZ inlineable 2017-10-09 11:40:13 +02:00
dgram.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
dns.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
domain.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
events.js events: migrate to internal/errors 2017-10-13 14:16:13 -07:00
fs.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
http2.js http2: refactor error handling 2017-08-28 00:39:42 +04:00
http.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
https.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
inspector.js inspector: migrate to internal/errors 2017-10-16 09:31:18 -07:00
module.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
net.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
os.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
path.js doc: fix unassigned deprecation code 2017-10-02 19:09:05 -07:00
perf_hooks.js perf_hooks: implementation of the perf timing API 2017-08-23 16:00:09 -07:00
process.js
punycode.js
querystring.js querystring: avoid indexOf when parsing 2017-08-09 14:03:48 -04:00
readline.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
repl.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
stream.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
string_decoder.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
sys.js
timers.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
tls.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
tty.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
url.js url: change variable name to be more descriptive 2017-09-27 00:39:29 +02:00
util.js util: use faster -0 check 2017-10-04 03:51:44 -04:00
v8.js v8: add new to the throw statement 2017-06-28 20:00:42 +02:00
vm.js vm: support parsing a script in a specific context 2017-09-05 10:47:42 +08:00
zlib.js zlib: migrate to internal/errors 2017-10-02 12:36:52 -07:00