Browse Source

node: call MakeDomainCallback in all domain cases

Previously there was no way to pass a Function callback directly to
MakeCallback and support domains. The check has been added so that users
never have to worry about supporting domains while using MakeCallback.
v0.10.14-release
Trevor Norris 12 years ago
parent
commit
6d91bd3707
  1. 3
      src/node.cc

3
src/node.cc

@ -1007,6 +1007,9 @@ MakeCallback(const Handle<Object> object,
Handle<Value> argv[]) {
// TODO Hook for long stack traces to be made here.
if (using_domains)
return MakeDomainCallback(object, callback, argc, argv);
// lazy load no domain next tick callbacks
if (process_tickCallback.IsEmpty()) {
Local<Value> cb_v = process->Get(String::New("_tickCallback"));

Loading…
Cancel
Save