Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/react-native/Libraries/Core/ExceptionsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ function reportException(

// $FlowFixMe[unclear-type]
const extraData: any = {
// $FlowFixMe[incompatible-use] we can't define a type with a Symbol-keyed field in flow
...e[decoratedExtraDataKey],
jsEngine: e.jsEngine,
rawStack: e.stack,
Expand Down
5 changes: 2 additions & 3 deletions packages/react-native/Libraries/Core/ExtendedError.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export type ExtendedError = Error &
componentStack?: ?string,
isComponentError?: boolean,
type?: string,
// Note: A field keyed by the Symbol ExceptionsManager.decoratedExtraDataKey is also read from ExtendedErrors.
// This field isn't documented in the types as Flow does not support this usecase, but it's effectively:
// [decoratedExtraDataKey]?: {[string]: mixed},
// Keyed by ExceptionsManager.decoratedExtraDataKey.
RN$ErrorExtraDataKey?: {[key: string]: unknown},

// Included for native errors
cause?: {
Expand Down
Loading