27
27
}
28
28
"use strict" ;
29
29
30
- var ReactVersion = "18.3.0-www-classic-1745b9a1 " ;
30
+ var ReactVersion = "18.3.0-www-classic-d1164e5e " ;
31
31
32
32
// ATTENTION
33
33
// When adding new symbols to this file,
@@ -408,19 +408,19 @@ function isArray(a) {
408
408
* problem. (Instead of a confusing exception thrown inside the implementation
409
409
* of the `value` object).
410
410
*/
411
- // $FlowFixMe only called in DEV, so void return is not possible.
411
+ // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
412
412
function typeName ( value ) {
413
413
{
414
414
// toStringTag is needed for namespaced types like Temporal.Instant
415
415
var hasToStringTag = typeof Symbol === "function" && Symbol . toStringTag ;
416
416
var type =
417
417
( hasToStringTag && value [ Symbol . toStringTag ] ) ||
418
418
value . constructor . name ||
419
- "Object" ; // $FlowFixMe
419
+ "Object" ; // $FlowFixMe[incompatible-return]
420
420
421
421
return type ;
422
422
}
423
- } // $FlowFixMe only called in DEV, so void return is not possible.
423
+ } // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
424
424
425
425
function willCoercionThrow ( value ) {
426
426
{
@@ -1126,7 +1126,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1126
1126
{
1127
1127
// The `if` statement here prevents auto-disabling of the safe
1128
1128
// coercion ESLint rule, so we must manually disable it below.
1129
- // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1129
+ // $FlowFixMe[incompatible-type] Flow incorrectly thinks React.Portal doesn't have a key
1130
1130
if ( mappedChild . key && ( ! _child || _child . key !== mappedChild . key ) ) {
1131
1131
checkKeyStringCoercion ( mappedChild . key ) ;
1132
1132
}
@@ -1135,7 +1135,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1135
1135
mappedChild = cloneAndReplaceKey (
1136
1136
mappedChild , // Keep both the (mapped) and old keys if they differ, just as
1137
1137
// traverseAllChildren used to do for objects as children
1138
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1138
+ escapedPrefix + // $FlowFixMe[incompatible-type] Flow incorrectly thinks React.Portal doesn't have a key
1139
1139
( mappedChild . key && ( ! _child || _child . key !== mappedChild . key )
1140
1140
? escapeUserProvidedKey (
1141
1141
// $FlowFixMe[unsafe-addition]
@@ -1192,7 +1192,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1192
1192
1193
1193
var iterator = iteratorFn . call ( iterableChildren ) ;
1194
1194
var step ;
1195
- var ii = 0 ; // $FlowFixMe `iteratorFn` might return null according to typing.
1195
+ var ii = 0 ; // $FlowFixMe[incompatible-use] `iteratorFn` might return null according to typing.
1196
1196
1197
1197
while ( ! ( step = iterator . next ( ) ) . done ) {
1198
1198
child = step . value ;
@@ -1363,7 +1363,7 @@ function createContext(defaultValue) {
1363
1363
var Consumer = {
1364
1364
$$typeof : REACT_CONTEXT_TYPE ,
1365
1365
_context : context
1366
- } ; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1366
+ } ; // $FlowFixMe[prop-missing] : Flow complains about not setting a value, which is intentional here
1367
1367
1368
1368
Object . defineProperties ( Consumer , {
1369
1369
Provider : {
@@ -1437,7 +1437,7 @@ function createContext(defaultValue) {
1437
1437
}
1438
1438
}
1439
1439
}
1440
- } ) ; // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1440
+ } ) ; // $FlowFixMe[prop-missing] : Flow complains about missing properties because it doesn't understand defineProperty
1441
1441
1442
1442
context . Consumer = Consumer ;
1443
1443
}
@@ -1543,7 +1543,7 @@ function lazy(ctor) {
1543
1543
{
1544
1544
// In production, this would just set it on the object.
1545
1545
var defaultProps ;
1546
- var propTypes ; // $FlowFixMe
1546
+ var propTypes ; // $FlowFixMe[prop-missing]
1547
1547
1548
1548
Object . defineProperties ( lazyType , {
1549
1549
defaultProps : {
@@ -1560,7 +1560,7 @@ function lazy(ctor) {
1560
1560
) ;
1561
1561
1562
1562
defaultProps = newDefaultProps ; // Match production behavior more closely:
1563
- // $FlowFixMe
1563
+ // $FlowFixMe[prop-missing]
1564
1564
1565
1565
Object . defineProperty ( lazyType , "defaultProps" , {
1566
1566
enumerable : true
@@ -1581,7 +1581,7 @@ function lazy(ctor) {
1581
1581
) ;
1582
1582
1583
1583
propTypes = newPropTypes ; // Match production behavior more closely:
1584
- // $FlowFixMe
1584
+ // $FlowFixMe[prop-missing]
1585
1585
1586
1586
Object . defineProperty ( lazyType , "propTypes" , {
1587
1587
enumerable : true
@@ -1779,7 +1779,7 @@ function cache(fn) {
1779
1779
1780
1780
if ( ! dispatcher ) {
1781
1781
// If there is no dispatcher, then we treat this as not being cached.
1782
- // $FlowFixMe: We don't want to use rest arguments since we transpile the code.
1782
+ // $FlowFixMe[incompatible-call] : We don't want to use rest arguments since we transpile the code.
1783
1783
return fn . apply ( null , arguments ) ;
1784
1784
}
1785
1785
@@ -1844,7 +1844,7 @@ function cache(fn) {
1844
1844
}
1845
1845
1846
1846
try {
1847
- // $FlowFixMe: We don't want to use rest arguments since we transpile the code.
1847
+ // $FlowFixMe[incompatible-call] : We don't want to use rest arguments since we transpile the code.
1848
1848
var result = fn . apply ( null , arguments ) ;
1849
1849
var terminatedNode = cacheNode ;
1850
1850
terminatedNode . s = TERMINATED ;
@@ -2064,7 +2064,7 @@ function disableLogs() {
2064
2064
enumerable : true ,
2065
2065
value : disabledLog ,
2066
2066
writable : true
2067
- } ; // $FlowFixMe Flow thinks console is immutable.
2067
+ } ; // $FlowFixMe[cannot-write] Flow thinks console is immutable.
2068
2068
2069
2069
Object . defineProperties ( console , {
2070
2070
info : props ,
@@ -2091,7 +2091,7 @@ function reenableLogs() {
2091
2091
configurable : true ,
2092
2092
enumerable : true ,
2093
2093
writable : true
2094
- } ; // $FlowFixMe Flow thinks console is immutable.
2094
+ } ; // $FlowFixMe[cannot-write] Flow thinks console is immutable.
2095
2095
2096
2096
Object . defineProperties ( console , {
2097
2097
log : assign ( { } , props , {
@@ -2240,7 +2240,7 @@ function describeNativeComponentFrame(fn, construct) {
2240
2240
2241
2241
var control ;
2242
2242
reentry = true ;
2243
- var previousPrepareStackTrace = Error . prepareStackTrace ; // $FlowFixMe It does accept undefined.
2243
+ var previousPrepareStackTrace = Error . prepareStackTrace ; // $FlowFixMe[incompatible-type] It does accept undefined.
2244
2244
2245
2245
Error . prepareStackTrace = undefined ;
2246
2246
var previousDispatcher ;
@@ -2259,7 +2259,7 @@ function describeNativeComponentFrame(fn, construct) {
2259
2259
// Something should be setting the props in the constructor.
2260
2260
var Fake = function ( ) {
2261
2261
throw Error ( ) ;
2262
- } ; // $FlowFixMe
2262
+ } ; // $FlowFixMe[prop-missing]
2263
2263
2264
2264
Object . defineProperty ( Fake . prototype , "props" , {
2265
2265
set : function ( ) {
@@ -2465,7 +2465,7 @@ function setCurrentlyValidatingElement$2(element) {
2465
2465
2466
2466
function checkPropTypes ( typeSpecs , values , location , componentName , element ) {
2467
2467
{
2468
- // $FlowFixMe This is okay but Flow doesn't know it.
2468
+ // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it.
2469
2469
var has = Function . call . bind ( hasOwnProperty ) ;
2470
2470
2471
2471
for ( var typeSpecName in typeSpecs ) {
0 commit comments