0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Trevor Norris aeee956ac7 async_wrap: correctly pass parent to init callback
Previous logic didn't allow parent to propagate to the init callback
properly. The fix now allows the init callback to be called and receive
the parent if:

- async wrap callbacks are enabled and parent exists
- the init callback has been called on the parent and an init callback
  exists then it will be called regardless of whether async wrap
  callbacks are disabled.

Change the init/pre/post callback checks to see if it has been properly
set. This allows removal of the Environment "using_asyncwrap" variable.

Pass Isolate to a TryCatch instance.

Fixes: https://github.com/nodejs/node/issues/2986
PR-URL: https://github.com/nodejs/node/pull/3216
Reviewed-By: Rod Vagg <rod@vagg.org>
2015-10-07 13:27:46 -06:00
..
abort src: honor --abort_on_uncaught_exception flag 2015-09-17 15:25:25 -05:00
addons test: linting for buffer-free-callback test 2015-10-06 21:35:00 -07:00
cctest
debugger test: load common.js in all tests 2015-10-06 15:11:47 -07:00
disabled test: replace deprecated util.debug() calls 2015-09-28 11:15:06 -07:00
fixtures node: add -c|--check CLI arg to syntax check script 2015-10-03 21:58:38 +10:00
gc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
internet test: split up internet dns tests 2015-09-12 13:52:04 -07:00
message test: mark eval_messages as flaky 2015-09-06 21:37:59 +10:00
parallel async_wrap: correctly pass parent to init callback 2015-10-07 13:27:46 -06:00
pummel test: change calls to deprecated util.print() 2015-09-28 13:21:15 -07:00
sequential test: remove deprecated error logging 2015-10-07 11:13:38 -07:00
testpy test: fix default value for additional param 2015-09-15 19:59:38 +05:30
timers
.eslintrc test: make common.js mandatory via linting rule 2015-10-06 15:11:58 -07:00
common.js test: make common.js mandatory via linting rule 2015-10-06 15:11:58 -07:00