Skip to content

Commit

Permalink
asyncwrap: add missing TryCatch
Browse files Browse the repository at this point in the history
The TryCatch was not being checked after calling the unload asyncQueue
callback in AsyncWrap::MakeCallback.
  • Loading branch information
trevnorris committed Nov 20, 2013
1 parent 3ac6946 commit aef652d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/async-wrap-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aef652d

Please sign in to comment.