Skip to content

Commit e0af1aa

Browse files
committed
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.
1 parent 9b5e051 commit e0af1aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
925925
workInProgressRootRecoverableErrors = errors;
926926
} else {
927927
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
928-
null,
928+
workInProgressRootConcurrentErrors,
929929
errors,
930930
);
931931
}

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ export function queueRecoverableErrors(errors: Array<mixed>) {
925925
workInProgressRootRecoverableErrors = errors;
926926
} else {
927927
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
928-
null,
928+
workInProgressRootConcurrentErrors,
929929
errors,
930930
);
931931
}

0 commit comments

Comments
 (0)