From 8841c31d1bc473a0c08c8ef37a1da2abb0a87a9c Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 14 Sep 2011 13:07:08 +0200 Subject: [PATCH] benchamrk/runner.js: Add "()" to constructor invocations Fixes the following JSHint errors: ./benchmark/runner.js: line 73, col 28, Missing '()' invoking a constructor. ./benchmark/runner.js: line 75, col 33, Missing '()' invoking a constructor. --- benchmark/runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/runner.js b/benchmark/runner.js index d249afa..89d05bc 100644 --- a/benchmark/runner.js +++ b/benchmark/runner.js @@ -70,9 +70,9 @@ Runner = { var parseTime = 0; for (var k = 0; k < runCount; k++) { - var t = (new Date).getTime(); + var t = (new Date()).getTime(); state.parser.parse(input); - parseTime += (new Date).getTime() - t; + parseTime += (new Date()).getTime() - t; } var averageParseTime = parseTime / runCount;