Skip to content

Commit

Permalink
switch to safePush
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Dec 1, 2022
1 parent 9b741ab commit 1b36eb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ export class ArrayArbitrary<T> extends Arbitrary<T[]> {
): IterableIterator<[Value<T>[], unknown, number]> {
const shrinks: IterableIterator<[Value<T>[], unknown, number]>[] = [];
for (let index = safeContext.startIndex; index < endIndex; ++index) {
shrinks.push(
safePush(
shrinks,
makeLazy(() =>
this.arb.shrink(value[index], safeContext.itemsContexts[index]).map((v): [Value<T>[], unknown, number] => {
const beforeCurrent = safeMap(
Expand Down

0 comments on commit 1b36eb0

Please sign in to comment.