Skip to content

Commit

Permalink
cast iterationCount from url to number in interactive runner. Fixes W…
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins authored Jan 30, 2023
1 parent 9566af6 commit dbff607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/interactive.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function startTest()
if (searchParams.has('suite'))
disableAllSuitesExcept(searchParams.get('suite'));

const iterationCount = searchParams.get('iterationCount') || 1;
const iterationCount = +searchParams.get('iterationCount') || 1;
const interactiveRunner = new window.BenchmarkRunner(Suites, iterationCount);

if (!(interactiveRunner instanceof InteractiveBenchmarkRunner)) {
Expand Down

0 comments on commit dbff607

Please sign in to comment.