Modernized the JS code
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines I follow the guideline, but I couldn't figured out what to put before (like src:
) because a lot files changed, so I putted nothing
Affected core subsystem(s)
Almost all .js
files has been affected.
Here is a complete list:
benchmark/_benchmark_progress.js
benchmark/_cli.js
benchmark/_http-benchmarkers.js
benchmark/_test-double-benchmarker.js
benchmark/common.js
lib/_http_agent.js
lib/_http_client.js
lib/_http_common.js
lib/_http_incoming.js
lib/_http_outgoing.js
lib/_http_server.js
lib/_stream_duplex.js
lib/_stream_passthrough.js
lib/_stream_readable.js
lib/_stream_transform.js
lib/_stream_wrap.js
lib/_stream_writable.js
lib/_tls_common.js
lib/_tls_legacy.js
lib/_tls_wrap.js
lib/assert.js
lib/async_hooks.js
lib/buffer.js
lib/child_process.js
lib/console.js
lib/crypto.js
lib/dgram.js
lib/dns.js
lib/domain.js
lib/events.js
lib/fs.js
lib/http.js
lib/https.js
lib/inspector.js
lib/module.js
lib/net.js
lib/os.js
lib/path.js
lib/punycode.js
lib/querystring.js
lib/readline.js
lib/repl.js
lib/string_decoder.js
lib/timers.js
lib/tls.js
lib/tty.js
lib/url.js
lib/util.js
lib/v8.js
lib/vm.js
lib/zlib.js
tools/license2rtf.js
tools/test-npm-package.js