diff --git a/lib/instrumentation/connect.js b/lib/instrumentation/connect.js index 0d61e92cc2..ac16051f1c 100644 --- a/lib/instrumentation/connect.js +++ b/lib/instrumentation/connect.js @@ -69,7 +69,7 @@ module.exports = function initialize(agent, connect) { } // I am a bad person and this makes me feel bad. var wrapped = eval( - '(function(){return function ' + (handle.name || '') + arglist + + '(function(){return function' + arglist + '{return agent.tracer.callbackProxy(handle).apply(this,arguments);};}())' ); wrapped[ORIGINAL] = handle;