Skip to content

Commit

Permalink
Fix randomtest with locally scoped iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
dfabulich committed Aug 28, 2017
1 parent 64c5f0c commit 8d368b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions randomtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ function randomtestAsync(i, showCoverage) {
function randomtest() {
var start = new Date().getTime();
randomSeed *= 1;
for (i = 0; i < iterations; i++) {
for (var i = 0; i < iterations; i++) {
console.log("*****Seed " + (i+randomSeed));
nav.resetStats(stats);
timeout = null;
Expand Down Expand Up @@ -715,7 +715,7 @@ function randomtest() {
if (!processExit) {
if (showText) console.log("Word count: " + wordCount);
if (showCoverage) {
for (i = 0; i < sceneNames.length; i++) {
for (var i = 0; i < sceneNames.length; i++) {
var sceneName = sceneNames[i];
var sceneLines = slurpFileLines('web/'+gameName+'/scenes/'+sceneName+'.txt');
var sceneCoverage = coverage[sceneName];
Expand Down

0 comments on commit 8d368b1

Please sign in to comment.