mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
asyncwrap: add missing TryCatch
The TryCatch was not being checked after calling the unload asyncQueue callback in AsyncWrap::MakeCallback.
This commit is contained in:
1 parent
3ac6946999
commit
aef652dc11
1 file changed
+3
@@ -117,6 +117,9 @@ inline v8::Handle<v8::Value> AsyncWrap::MakeCallback(
|
||||
if (has_async_queue()) {
|
||||
v8::Local<v8::Value> val = context.As<v8::Value>();
|
||||
env()->async_listener_unload_function()->Call(process, 1, &val);
|
||||
|
||||
if (try_catch.HasCaught())
|
||||
return v8::Undefined(env()->isolate());
|
||||
}
|
||||
|
||||
Environment::TickInfo* tick_info = env()->tick_info();
|
||||
|
||||
Reference in new issue
Block a user