From 6d91bd37075a53f42bab01915fa89ba4a4f0a075 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 10 Jul 2013 10:35:57 -0700 Subject: [PATCH] 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. --- src/node.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node.cc b/src/node.cc index 94af50941bf..4e9754f8fbd 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1007,6 +1007,9 @@ MakeCallback(const Handle object, Handle 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 cb_v = process->Get(String::New("_tickCallback"));