node/lib
James M Snell 324a6c235a
async_hooks: add thisArg to AsyncResource.bind
Semver-major

Support setting the `thisArg` for AsyncResource.bind and
AsyncResource.prototype.bind. If `thisArg` is not set,
then `this` will be set to the `AsyncResource` instance.

Fixes: https://github.com/nodejs/node/issues/36051
Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/36782
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
2021-01-09 11:22:35 -08:00
..
assert
dns
fs
internal process: passing -1 to setuid/setgid should not abort 2021-01-09 08:43:37 -08:00
path path: add path/posix and path/win32 alias modules 2020-10-20 14:27:31 +00:00
stream
timers quic,timers: refactor to use validateAbortSignal 2020-12-27 06:37:30 -08:00
util util: add util/types alias module 2020-10-21 01:26:34 +02:00
_http_agent.js http: set lifo as the default scheduling strategy in Agent 2021-01-06 11:18:39 +01:00
_http_client.js http: refactor to use more primordials 2020-12-29 16:06:05 +01:00
_http_common.js http: refactor to use more primordials 2020-12-29 16:06:05 +01:00
_http_incoming.js net: add support for finished after .destroy() 2021-01-04 13:17:19 -08:00
_http_outgoing.js http: make HEAD method to work with keep-alive 2021-01-03 22:52:59 +01:00
_http_server.js http: refactor to use more primordials 2020-12-29 16:06:05 +01:00
_stream_duplex.js stream: do not use _stream_* anymore 2021-01-05 19:02:04 +01:00
_stream_passthrough.js stream: do not use _stream_* anymore 2021-01-05 19:02:04 +01:00
_stream_readable.js stream: do not use _stream_* anymore 2021-01-05 19:02:04 +01:00
_stream_transform.js stream: do not use _stream_* anymore 2021-01-05 19:02:04 +01:00
_stream_wrap.js
_stream_writable.js stream: do not use _stream_* anymore 2021-01-05 19:02:04 +01:00
_tls_common.js tls: refactor to use more primordials 2020-12-02 20:22:14 +00:00
_tls_wrap.js lib: refactor to use validateCallback 2020-12-29 15:48:57 +00:00
.eslintrc.yaml http: add support for abortsignal to http.request 2020-11-19 14:32:44 +00:00
assert.js assert: refactor to use more primordials 2020-11-27 06:17:41 -08:00
async_hooks.js async_hooks: add thisArg to AsyncResource.bind 2021-01-09 11:22:35 -08:00
buffer.js lib: add uncurried accessor properties to primordials 2020-12-07 10:02:34 -08:00
child_process.js child_process: reduce abort handler code duplication 2020-12-30 07:54:04 -08:00
cluster.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
console.js
constants.js
crypto.js crypto: implement randomuuid 2021-01-07 12:44:36 -08:00
dgram.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
diagnostics_channel.js lib: fix diagnostics_channel hasSubscribers error 2020-12-24 07:11:01 -08:00
dns.js lib: refactor to use validateCallback 2020-12-29 15:48:57 +00:00
domain.js domain: make node resilient to Array prototype tempering 2021-01-09 08:54:19 -08:00
events.js events: refactor to use more primordials 2020-12-25 18:10:56 +00:00
fs.js fs: refactor to avoid unsafe array iteration 2021-01-06 11:31:53 +01:00
http2.js
http.js http: refactor to use more primordials 2020-12-29 16:06:05 +01:00
https.js https: refactor to use more primordials 2020-12-27 17:30:09 +00:00
inspector.js lib: refactor to use validateCallback 2020-12-29 15:48:57 +00:00
module.js
net.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
os.js os: refactor to use more primordials 2020-12-01 14:27:43 +00:00
path.js path: refactor to use more primordials 2020-12-02 20:22:34 +00:00
perf_hooks.js perf_hooks: refactor to avoid unsafe array iteration 2021-01-04 19:02:08 +00:00
process.js
punycode.js
querystring.js lib: support BigInt in querystring.stringify 2020-12-21 15:03:58 +01:00
readline.js readline: fix behaviour of Interface plugged to a non-terminal output 2021-01-06 18:45:16 +01:00
repl.js repl: disable blocking completions by default 2020-12-21 12:52:02 +01:00
stream.js stream: support abortsignal in constructor 2020-12-10 23:39:18 +02:00
string_decoder.js string_decoder: refactor to use more primordials 2020-12-07 09:59:42 -08:00
sys.js
timers.js
tls.js tls: refactor to use more primordials 2020-12-02 20:22:14 +00:00
trace_events.js events: refactor to use more primordials 2020-12-25 18:10:56 +00:00
tty.js tty: refactor to avoid unsafe array iteration 2021-01-06 13:02:22 +01:00
url.js url: fix url.format with ipv6 hostname 2020-12-30 16:05:13 +00:00
util.js util: refactor to use more primordials 2020-12-28 19:47:41 +00:00
v8.js v8: refactor to use more primordials 2020-12-22 19:39:31 +00:00
vm.js vm: refactor to use more primordials 2020-11-14 14:46:19 +00:00
wasi.js wasi: refactor to avoid unsafe array iteration 2021-01-06 11:34:02 +01:00
worker_threads.js worker: add experimental BroadcastChannel 2020-12-01 08:02:28 -08:00
zlib.js stream,zlib: do not use _stream_* anymore 2020-12-29 01:47:57 +01:00