Tweak to avoid property read (#14593)
This commit is contained in:
parent
0fc1547513
commit
7ad9806d11
|
@ -214,8 +214,9 @@ function throwException(
|
|||
// attach another listener to flip the boundary back to its normal state.
|
||||
const thenables: Set<Thenable> = (workInProgress.updateQueue: any);
|
||||
if (thenables === null) {
|
||||
workInProgress.updateQueue = (new Set(): any);
|
||||
workInProgress.updateQueue.add(thenable);
|
||||
const updateQueue = (new Set(): any);
|
||||
updateQueue.add(thenable);
|
||||
workInProgress.updateQueue = updateQueue;
|
||||
} else {
|
||||
thenables.add(thenable);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue