Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Do not try-catch in MakeCallback when using domains
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 19, 2011
1 parent afa08ad commit 9acb93f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/node.cc
Expand Up @@ -1100,14 +1100,9 @@ void MakeCallback(Handle<Object> object,
dispatch_argv[2 + i] = argv[i];
}

TryCatch try_catch;

// Do not try-catch here - we'll catch any problems in process.dispatch.
process_dispatch->Call(process, 2 + argc, dispatch_argv);

if (try_catch.HasCaught()) {
FatalException(try_catch);
}

} else {
// Legacy dispatch
Local<Value> callback_v = object->Get(String::New(method));
Expand Down

0 comments on commit 9acb93f

Please sign in to comment.