Skip to content

Commit 2797ffa

Browse files
author
Jan Kurella
committed
fixing variable overwriting in test (thanks JsHint!)
1 parent c58a677 commit 2797ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/performance.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
p.spawn(function (data) {
2424
for (var i = 0; i < data.length; ++i) {
2525
var n = data[i];
26-
var i = 0;
27-
while (++i < n * n) { }
28-
data[i] = i;
26+
var square;
27+
for (square = 0; square < n * n; ++square) { }
28+
data[i] = square;
2929
}
3030
return data;
3131
}).then(function (data) {

0 commit comments

Comments
 (0)