diff options
Diffstat (limited to 'benchmark/misc/domain-fn-args.js')
-rw-r--r-- | benchmark/misc/domain-fn-args.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/benchmark/misc/domain-fn-args.js b/benchmark/misc/domain-fn-args.js index 36e9e90029..517ca924e9 100644 --- a/benchmark/misc/domain-fn-args.js +++ b/benchmark/misc/domain-fn-args.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common.js'); var domain = require('domain'); @@ -12,13 +13,13 @@ var gargs = [1, 2, 3]; function main(conf) { var args, ret, n = +conf.n; - var arguments = gargs.slice(0, conf.arguments); + var myArguments = gargs.slice(0, conf.arguments); bench.start(); bdomain.enter(); for (var i = 0; i < n; i++) { - if (arguments.length >= 2) { - args = Array.prototype.slice.call(arguments, 1); + if (myArguments.length >= 2) { + args = Array.prototype.slice.call(myArguments, 1); ret = fn.apply(this, args); } else { ret = fn.call(this); |