diff --git a/lib/util.js b/lib/util.js index 7dd058a6..815f7d19 100644 --- a/lib/util.js +++ b/lib/util.js @@ -273,13 +273,9 @@ */ exec.with = function(callback) { - var result, - bind = Function.bind; + var args = [].slice.call(arguments, 1); - arguments[0] = null; - result = bind.apply(callback, arguments); - - return result; + return callback.bind(null, args); }; /**