/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Core/ExtendedError.js
33 строки
1 KB
Pieter De Baets
Pass native stack to ExceptionManager (#37995)
22 июн 2023, 19:13
22 июн 2023, 19:13
1001cf6
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict * @format */ export type ExtendedError = Error & interface { jsEngine?: string, preventSymbolication?: boolean, 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}, // Included for native errors cause?: { name: string, message: string, // $FlowFixMe[unclear-type] stackElements?: $ReadOnlyArray<Object>, // $FlowFixMe[unclear-type] stackSymbols?: $ReadOnlyArray<Object>, // $FlowFixMe[unclear-type] stackReturnAddresses?: $ReadOnlyArray<Object>, }, };