mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix typos detected by github.com/client9/misspell (#13349)
This commit is contained in:
committed by
Dan Abramov
parent
be4533af7d
commit
e0204084a0
+1
-1
@@ -117,7 +117,7 @@ export function logError(boundary: Fiber, errorInfo: CapturedValue<mixed>) {
|
||||
const suppressLogging = e && e.suppressReactErrorLogging;
|
||||
if (!suppressLogging) {
|
||||
// Rethrow it from a clean stack because this function is assumed to never throw.
|
||||
// We can't safely call console.error() here because it could *also* throw if overriden.
|
||||
// We can't safely call console.error() here because it could *also* throw if overridden.
|
||||
// https://github.com/facebook/react/issues/13188
|
||||
setTimeout(() => {
|
||||
throw e;
|
||||
|
||||
+1
-1
@@ -1250,7 +1250,7 @@ function renderRoot(
|
||||
let msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
|
||||
msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
|
||||
|
||||
// TODO: Account for the Just Noticable Difference
|
||||
// TODO: Account for the Just Noticeable Difference
|
||||
|
||||
const rootExpirationTime = root.expirationTime;
|
||||
onSuspend(
|
||||
|
||||
+2
-2
@@ -286,8 +286,8 @@ function throwException(
|
||||
// time. First, find the earliest uncommitted expiration time in the
|
||||
// tree, including work that is suspended. Then subtract the offset
|
||||
// used to compute an async update's expiration time. This will cause
|
||||
// high priority (interactive) work to expire earlier than neccessary,
|
||||
// but we can account for this by adjusting for the Just Noticable
|
||||
// high priority (interactive) work to expire earlier than necessary,
|
||||
// but we can account for this by adjusting for the Just Noticeable
|
||||
// Difference.
|
||||
const earliestExpirationTime = findEarliestOutstandingPriorityLevel(
|
||||
root,
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ describe('ReactIncrementalErrorReplay-test', () => {
|
||||
// Note: this test is fragile and relies on internals.
|
||||
// We almost always try to avoid such tests, but here the cost of
|
||||
// the list getting out of sync (and causing subtle bugs in rare cases)
|
||||
// is higher than the cost of maintaing the test.
|
||||
// is higher than the cost of maintaining the test.
|
||||
const {
|
||||
// Any Fiber factory function will do.
|
||||
createHostRootFiber,
|
||||
|
||||
Reference in New Issue
Block a user