Fix wrong context argument to `apply`

The context argument should be the array, not null.

I wrote a test that I'll include in the next PR.
This commit is contained in:
Andrew Clark 2022-02-09 20:49:35 -05:00
parent 9b5e0517b4
commit e0af1aabec
No known key found for this signature in database
GPG Key ID: 542E2C5D4AD706D4
2 changed files with 2 additions and 2 deletions

View File

@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
workInProgressRootRecoverableErrors = errors;
} else {
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
null,
workInProgressRootConcurrentErrors,
errors,
);
}

View File

@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
workInProgressRootRecoverableErrors = errors;
} else {
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
null,
workInProgressRootConcurrentErrors,
errors,
);
}