0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/lib
Alexey Orlenko ec2f098156
util: change sparse arrays inspection format
Missing elements in sparse arrays used to be serialized to empty
placeholders delimited with commas by util.inspect() and in some cases
the result was a syntactically correct representation of a JavaScript
array with shorter length than the original one. This commit implements
@TimothyGu's suggestion to change the way util.inspect() formats sparse
arrays to something similar to how Firefox shows them.

Fixes: https://github.com/nodejs/node/issues/11570
PR-URL: https://github.com/nodejs/node/pull/11576
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2017-03-10 01:10:59 +01:00
..
internal url: remove invalid file protocol check 2017-03-09 08:56:51 -05:00
_debug_agent.js lib: deprecate node --debug at runtime 2017-02-10 12:41:09 -08:00
_debugger.js util, debugger: remove internalUtil.error 2017-02-19 12:33:19 -08:00
_http_agent.js lib: remove unnecessary assignments with _extend 2017-02-22 10:35:25 +05:30
_http_client.js http: use Symbol for outgoing headers 2017-03-09 05:50:22 -05:00
_http_common.js http: optimize default method case 2017-01-13 16:11:18 -05:00
_http_incoming.js http: append Cookie header values with semicolon 2017-03-09 08:10:25 -05:00
_http_outgoing.js http: concatenate outgoing Cookie headers 2017-03-09 08:10:30 -05:00
_http_server.js http: use Symbol for outgoing headers 2017-03-09 05:50:22 -05:00
_linklist.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js stream: fix comment for sync flag of ReadableState 2017-03-03 14:16:24 -08:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_tls_common.js tls: use emitWarning() for dhparam < 2048 bits 2017-02-20 06:59:30 -08:00
_tls_legacy.js tls: runtime deprecation for tls.createSecurePair() 2017-03-06 14:23:20 -08:00
_tls_wrap.js tls: do not crash on STARTTLS when OCSP requested 2017-02-22 09:36:02 -08:00
.eslintrc.yaml tools: rename eslintrc to an undeprecated format 2017-01-18 09:48:52 +05:30
assert.js assert: fix premature deep strict comparison 2017-02-27 18:39:40 +08:00
buffer.js buffer: refactor Buffer.prototype.inspect() 2017-03-02 09:39:03 -08:00
child_process.js child_process: fix deoptimizing use of arguments 2017-03-01 10:24:03 -05:00
cluster.js cluster: refactor module into multiple files 2017-01-13 17:01:07 -05:00
console.js console: fixup console.dir() error handling 2017-02-21 16:50:58 +01:00
constants.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
crypto.js crypto: upgrade pbkdf2 without digest to an error 2017-02-13 11:04:51 -08:00
dgram.js dgram: refactor dgram to module.exports 2017-03-09 10:50:18 +01:00
dns.js dns: minor refactor of dns module 2017-03-04 14:16:03 -08:00
domain.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
events.js domain,events: support non-object 'error' argument 2017-02-22 21:42:52 +01:00
fs.js fs: improve performance for sync stat() functions 2017-02-25 20:58:42 -05:00
http.js
https.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
module.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
net.js lib, test: fix server.listen error message 2017-03-09 10:55:58 +01:00
os.js os: improve cpus() performance 2017-03-02 15:31:21 -05:00
path.js
process.js
punycode.js
querystring.js url: fix surrogate handling in encodeAuth() 2017-02-14 12:13:11 -08:00
readline.js tools: enable one-var-declaration-per-line ESLint rule 2017-02-21 12:53:19 +01:00
repl.js repl: docs-only deprecation of magic mode 2017-03-06 19:23:34 -08:00
stream.js stream: move legacy to lib/internal dir 2017-02-01 09:58:51 +01:00
string_decoder.js string_decoder: align UTF-8 handling with V8 2017-01-26 22:46:18 +01:00
sys.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
timers.js timer,domain: maintain order of timer callbacks 2017-02-14 18:54:36 -05:00
tls.js tls: runtime deprecation for tls.createSecurePair() 2017-03-06 14:23:20 -08:00
tty.js tty: avoid oob warning in TTYWrap::GetWindowSize() 2017-02-22 20:20:04 +01:00
url.js url: use hasIntl instead of try-catch 2017-03-04 08:04:08 -08:00
util.js util: change sparse arrays inspection format 2017-03-10 01:10:59 +01:00
v8.js v8: add cachedDataVersionTag 2017-03-05 14:23:02 +01:00
vm.js vm: refactor vm module 2017-02-17 10:21:02 -08:00
zlib.js zlib: use RangeError/TypeError consistently 2017-02-17 10:37:46 -08:00