Files
node/lib
Daniel Bevenius f2defcac4d src: fix error message in async_hooks constructor
There are two minor issues in the AsyncHook constructor, if the object
passed in has an after and/or destroy property that are not functions
the errors thrown will still be:
TypeError [ERR_ASYNC_CALLBACK]: before must be a function

This commit updates the code and adds a unit test.

PR-URL: https://github.com/nodejs/node/pull/19000
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
2018-02-28 07:31:02 +01:00
..
2018-02-09 08:45:51 -05:00
2018-02-16 18:09:56 +01:00
2018-02-22 13:36:22 +00:00
2018-02-22 20:33:10 -05:00
2018-02-27 20:34:18 +08:00
2017-08-28 00:39:42 +04:00
2018-02-22 11:10:14 +01:00
2016-10-04 12:17:32 -04:00
2018-02-16 18:09:56 +01:00
2018-02-22 15:07:05 +00:00
2017-03-10 11:23:48 -08:00
2018-02-22 12:08:01 +01:00
2018-02-25 02:31:14 +08:00