mirror of https://github.com/nodejs/node.git
benchmark: don't convert arguments to numbers
PR-URL: https://github.com/nodejs/node/pull/6570 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>pull/6570/head
parent
c8fa79f351
commit
c570182a39
|
@ -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--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue