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
2 changed files with 2 additions and 2 deletions
@@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
workInProgressRootRecoverableErrors = errors;
} else {
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
null,
workInProgressRootConcurrentErrors,
errors,
);
}
@@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
workInProgressRootRecoverableErrors = errors;
} else {
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
null,
workInProgressRootConcurrentErrors,
errors,
);
}