fix: upgrade deno_ast to 0.23 (#17269)

Closes #17172
Closes #15669
Closes #8529
This commit is contained in:
David Sherret 2023-01-04 18:54:54 -05:00 committed by GitHub
parent 319f607476
commit 0ee64ad847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 145 additions and 116 deletions

View file

@ -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);