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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
dnlup authored and targos committed Apr 28, 2020
1 parent c572218 commit cdf4f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/worker/echo.js
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 cdf4f48

Please sign in to comment.