diff --git a/lib/util.js b/lib/util.js index b73c2ced..c206ac62 100644 --- a/lib/util.js +++ b/lib/util.js @@ -723,9 +723,11 @@ */ this.retExec = function() { var result, - exec = Util.exec.bind(Util); + exec = Util.exec.bind(Util), + args = Util.slice(arguments); - result = Util.bind.apply(exec, arguments); + args.unshift(exec); + result = Util.bind.apply(null, args); return result; };