File tree 2 files changed +7
-0
lines changed
react-devtools-shared/src/backend
react-devtools-shell/src/app/InspectableElements
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ export function serializeToString(data: any): string {
81
81
}
82
82
cache . add ( value ) ;
83
83
}
84
+ // $FlowFixMe
85
+ if ( typeof value === 'bigint' ) {
86
+ return value . toString ( ) + 'n' ;
87
+ }
84
88
return value ;
85
89
} ) ;
86
90
}
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ const immutable = Immutable.fromJS({
31
31
xyz : 1 ,
32
32
} ,
33
33
} ) ;
34
+ // $FlowFixMe
35
+ const bigInt = BigInt ( 123 ) ; // eslint-disable-line no-undef
34
36
35
37
export default function UnserializableProps ( ) {
36
38
return (
@@ -43,6 +45,7 @@ export default function UnserializableProps() {
43
45
setOfSets = { setOfSets }
44
46
typedArray = { typedArray }
45
47
immutable = { immutable }
48
+ bigInt = { bigInt }
46
49
/>
47
50
) ;
48
51
}
You can’t perform that action at this time.
0 commit comments