summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-04 18:54:54 -0500
committerGitHub <noreply@github.com>2023-01-04 18:54:54 -0500
commit0ee64ad84726f7c91842c6a2dab0cb6a96dead4b (patch)
tree50d42e65d1f1d1e6b1cffc4e9f38f3e2a5d1dd59 /cli/js
parent319f6074761421b797db71bf10f6171516e3d92a (diff)
fix: upgrade deno_ast to 0.23 (#17269)
Closes #17172 Closes #15669 Closes #8529
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/40_testing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index f4dcf8a91..43232ef90 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -1069,7 +1069,7 @@
if (shuffle !== null) {
// http://en.wikipedia.org/wiki/Linear_congruential_generator
// Use BigInt for everything because the random seed is u64.
- const nextInt = (function (state) {
+ const nextInt = function (state) {
const m = 0x80000000n;
const a = 1103515245n;
const c = 12345n;
@@ -1077,7 +1077,7 @@
return function (max) {
return state = ((a * state + c) % m) % BigInt(max);
};
- }(BigInt(shuffle)));
+ }(BigInt(shuffle));
for (let i = filtered.length - 1; i > 0; i--) {
const j = nextInt(i);