Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Do not try-catch in MakeCallback when using domains

  • Loading branch information
ry committed Sep 19, 2011
1 parent afa08ad commit 9acb93f83da1bdeb532ed17fcce867f0a76fcc61
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/node.cc
@@ -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));

0 comments on commit 9acb93f

Please sign in to comment.
You can’t perform that action at this time.