0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Benjamin Gruenbaum a6b9b554eb child_process: refactor self=this in socket_list
The socket list module (used by child_process) currently uses the
`var self = this;` pattern for context in several places, this PR
replaces this with arrow functions or passing a parameter in where
appropriate.

Note that the `var self = this` in the _request is intentioanlly
left in place since it is not trivial to refactor it and the current
pattern isn't bad given the use case.

PR-URL: https://github.com/nodejs/node/pull/5860
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
2016-03-27 12:51:33 +03:00
..
internal child_process: refactor self=this in socket_list 2016-03-27 12:51:33 +03:00
_debug_agent.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
_debugger.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
_http_agent.js https: fix ssl socket leak when keepalive is used 2016-03-17 14:32:49 +02:00
_http_client.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
_http_common.js http: strictly forbid invalid characters from headers 2016-02-09 09:22:09 -08:00
_http_incoming.js http: remove old, confusing comment 2016-02-15 07:52:21 -08:00
_http_outgoing.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
_http_server.js http,util: fix typos in comments 2016-02-17 08:43:40 -08:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: emit 'pause' on nextTick 2016-03-23 20:57:14 +01:00
_stream_transform.js stream: prevent object map change in TransformState 2016-02-02 13:05:04 -06:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
_tls_common.js tls: scope loop vars with let 2016-01-26 20:53:05 +01:00
_tls_legacy.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
_tls_wrap.js crypto: improve error messages 2016-03-26 23:46:32 +05:30
.eslintrc tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
assert.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
buffer.js buffer: add swap16() and swap32() methods 2016-03-23 08:52:44 -07:00
child_process.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
cluster.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
console.js console: check that stderr is writable 2016-03-15 19:10:55 -07:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
dgram.js lib: reduce usage of self = this 2016-03-21 15:48:51 -07:00
dns.js dns: Use object without protoype for map 2016-03-22 11:13:03 -07:00
domain.js lib: reduce usage of self = this 2016-03-21 15:48:51 -07:00
events.js process: add 'warning' event and process.emitWarning() 2016-03-24 13:19:11 -07:00
fs.js fs: make fs.watch error message more useful 2016-03-25 14:21:42 -07:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
module.js module: refactor redeclared variable 2016-01-31 19:16:09 +01:00
net.js lib: reduce usage of self = this 2016-03-21 15:48:51 -07:00
os.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
path.js path: assert inputs are strings 2016-03-17 23:20:12 -04:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: don't stringify bad surrogate pair 2016-03-26 04:17:12 -04:00
readline.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
repl.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js timers: fix lint from 4fe02e2 2016-03-21 12:35:12 -04:00
tls.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
tty.js tty: don't read from console stream upon creation 2016-03-23 20:55:52 +01:00
url.js url: group slashed protocols by protocol name 2016-02-29 20:26:59 -06:00
util.js util: improve format() performance further 2016-03-04 17:27:21 -06:00
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: do not emit event on *Sync() methods 2016-03-19 13:38:26 -07:00