Permalink
Browse files

MakeCallback: Use in node_signal_watcher

  • Loading branch information...
1 parent e1dd570 commit db45b2ca02dc23278a477625a8698ce136eb8807 @isaacs isaacs committed Apr 12, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/node_signal_watcher.cc
View
8 src/node_signal_watcher.cc
@@ -62,13 +62,7 @@ void SignalWatcher::Callback(EV_P_ ev_signal *watcher, int revents) {
Local<Function> callback = Local<Function>::Cast(callback_v);
- TryCatch try_catch;
-
- callback->Call(w->handle_, 0, NULL);
-
- if (try_catch.HasCaught()) {
- FatalException(try_catch);
- }
+ MakeCallback(w->handle_, callback, 0, NULL);
}
Handle<Value> SignalWatcher::New(const Arguments& args) {

0 comments on commit db45b2c

Please sign in to comment.