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.
This commit is contained in:
Trevor Norris 2013-07-10 10:35:57 -07:00
parent 610269295b
commit 6d91bd3707

View File

@ -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"));