Fix typos detected by github.com/client9/misspell (#13349)
Kazuhiro Sera committed
Aug 10, 2018 at 22:06 UTC
e0204084a03e04103864ab36df9456c99bd4ae1b
4 files changed
+5
-5
packages/react-reconciler/src/ReactFiberCommitWork.js
+1
-1
@@ -117,7 +117,7 @@ export function logError(boundary: Fiber, errorInfo: CapturedValue<mixed>) {
117
const suppressLogging = e && e.suppressReactErrorLogging;
118
if (!suppressLogging) {
119
// Rethrow it from a clean stack because this function is assumed to never throw.
120
- // We can't safely call console.error() here because it could *also* throw if overriden.
120
+ // We can't safely call console.error() here because it could *also* throw if overridden.
121
// https://github.com/facebook/react/issues/13188
122
setTimeout(() => {
123
throw e;
packages/react-reconciler/src/ReactFiberScheduler.js
+1
-1
@@ -1250,7 +1250,7 @@ function renderRoot(
1250
let msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
1251
msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
1252
1253
- // TODO: Account for the Just Noticable Difference
1253
+ // TODO: Account for the Just Noticeable Difference
1254
1255
const rootExpirationTime = root.expirationTime;
1256
onSuspend(
packages/react-reconciler/src/ReactFiberUnwindWork.js
+2
-2
@@ -286,8 +286,8 @@ function throwException(
286
// time. First, find the earliest uncommitted expiration time in the
287
// tree, including work that is suspended. Then subtract the offset
288
// used to compute an async update's expiration time. This will cause
289
- // high priority (interactive) work to expire earlier than neccessary,
290
- // but we can account for this by adjusting for the Just Noticable
289
+ // high priority (interactive) work to expire earlier than necessary,
290
+ // but we can account for this by adjusting for the Just Noticeable
291
// Difference.
292
const earliestExpirationTime = findEarliestOutstandingPriorityLevel(
293
root,
packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js
+1
-1
@@ -14,7 +14,7 @@ describe('ReactIncrementalErrorReplay-test', () => {
14
// Note: this test is fragile and relies on internals.
15
// We almost always try to avoid such tests, but here the cost of
16
// the list getting out of sync (and causing subtle bugs in rare cases)
17
- // is higher than the cost of maintaing the test.
17
+ // is higher than the cost of maintaining the test.
18
const {
19
// Any Fiber factory function will do.
20
createHostRootFiber,