diff --git a/lib/globals.js b/lib/globals.js index e4f82874..040bc2fa 100644 --- a/lib/globals.js +++ b/lib/globals.js @@ -51,7 +51,7 @@ g.withContext = function(fn, cx) { var oldContext = g.context; g.context = cx || {}; try { - fn.apply(this, arguments) + return fn.apply(this, arguments) } finally { g.context = oldContext; }