diff --git a/src/node.cc b/src/node.cc index dbe84d8ad5..b4c3da7df2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1058,6 +1058,7 @@ MakeCallback(const Handle object, HandleScope scope(node_isolate); Local callback = object->Get(symbol).As(); + assert(callback->IsFunction()); if (using_domains) return scope.Close(MakeDomainCallback(object, callback, argc, argv));