From c570182a39ada502d0f65223728b0cd9e136cda0 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sat, 28 May 2016 00:56:28 -0400 Subject: [PATCH] benchmark: don't convert arguments to numbers PR-URL: https://github.com/nodejs/node/pull/6570 Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis --- benchmark/common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/benchmark/common.js b/benchmark/common.js index d937e13d93f..d49aef106f1 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -195,9 +195,7 @@ function parseOpts(options) { if (!match || !match[1] || !options[match[1]]) { return null; } else { - conf[match[1]] = (match[2].length && isFinite(match[2]) - ? +match[2] - : match[2]); + conf[match[1]] = match[2]; num--; } }