From 05f4dff97519ada5d3149a16ca9e5a04df948a61 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Thu, 5 Feb 2015 15:54:12 -0700 Subject: asyncwrap: fix constructor condition for early ret AsyncWrap should always properly propagate asynchronous calls to any child that is created. Regardless whether kCallInitHook is currently active. The previous logic would always return early if kCallInitHook wasn't set. PR-URL: https://github.com/iojs/io.js/pull/732 Reviewed-by: Ben Noordhuis --- src/env.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/env.h') diff --git a/src/env.h b/src/env.h index 8dc9c968835..f28d5ffad2a 100644 --- a/src/env.h +++ b/src/env.h @@ -395,6 +395,9 @@ class Environment { inline bool using_domains() const; inline void set_using_domains(bool value); + inline bool using_asyncwrap() const; + inline void set_using_asyncwrap(bool value); + inline bool printed_error() const; inline void set_printed_error(bool value); @@ -479,6 +482,7 @@ class Environment { ares_task_list cares_task_list_; bool using_smalloc_alloc_cb_; bool using_domains_; + bool using_asyncwrap_; bool printed_error_; debugger::Agent debugger_agent_; -- cgit v1.2.3