Skip to content

Commit

Permalink
benchmark: use let instead of var in worker
Browse files Browse the repository at this point in the history
PR-URL: #31794
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
dnlup authored and addaleax committed Mar 30, 2020
1 parent f1d3fb0 commit d831665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/worker/echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function main({ n, workers, sendsPerBroadcast: sends, payload: payloadType }) {
return;
}
for (const worker of workerObjs) {
for (var i = 0; i < sends; ++i)
for (let i = 0; i < sends; ++i)
worker.postMessage(payload);
}
}
Expand Down

0 comments on commit d831665

Please sign in to comment.