mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user