File tree Expand file tree Collapse file tree 8 files changed +24
-16
lines changed Expand file tree Collapse file tree 8 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 10
10
11
11
'use strict' ;
12
12
13
- import type { ExtendedError } from 'react-native/Libraries/Core/Devtools/parseErrorStack ' ;
13
+ import type { ExtendedError } from 'react-native/Libraries/Core/ExtendedError ' ;
14
14
15
15
const React = require ( 'react' ) ;
16
16
const ReactNative = require ( 'react-native' ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const BatchedBridge = require('./BatchedBridge');
14
14
15
15
const invariant = require ( 'invariant' ) ;
16
16
17
- import type { ExtendedError } from '../Core/Devtools/parseErrorStack ' ;
17
+ import type { ExtendedError } from '../Core/ExtendedError ' ;
18
18
19
19
export type ModuleConfig = [
20
20
string /* name */ ,
Original file line number Diff line number Diff line change @@ -15,16 +15,6 @@ import type {HermesParsedStack} from './parseHermesStack';
15
15
16
16
const parseHermesStack = require ( './parseHermesStack' ) ;
17
17
18
- // $FlowFixMe[incompatible-exact]
19
- export type ExtendedError = Error &
20
- interface {
21
- jsEngine ? : string ,
22
- preventSymbolication ? : boolean ,
23
- componentStack ? : string ,
24
- forceRedbox ? : boolean ,
25
- isComponentError ? : boolean ,
26
- } ;
27
-
28
18
function convertHermesStack ( stack : HermesParsedStack ) : Array < StackFrame > {
29
19
const frames = [ ] ;
30
20
for ( const entry of stack . entries ) {
Original file line number Diff line number Diff line change 10
10
11
11
'use strict' ;
12
12
13
- import type { ExtendedError } from './Devtools/parseErrorStack ' ;
13
+ import type { ExtendedError } from './ExtendedError ' ;
14
14
import type { ExceptionData } from './NativeExceptionsManager' ;
15
15
16
16
class SyntheticError extends Error {
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict
8
+ * @format
9
+ */
10
+
11
+ export type ExtendedError = Error & {
12
+ jsEngine ?: string ,
13
+ preventSymbolication ?: boolean ,
14
+ componentStack ?: string ,
15
+ forceRedbox ?: boolean ,
16
+ isComponentError ?: boolean ,
17
+ ...
18
+ } ;
Original file line number Diff line number Diff line change 10
10
11
11
import { handleException , SyntheticError } from './ExceptionsManager' ;
12
12
13
- import type { ExtendedError } from './Devtools/parseErrorStack ' ;
13
+ import type { ExtendedError } from './ExtendedError ' ;
14
14
15
15
export type CapturedError = {
16
16
+ componentStack : string ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import type {
21
21
ExtendedExceptionData ,
22
22
} from './parseLogBoxLog' ;
23
23
import parseErrorStack from '../../Core/Devtools/parseErrorStack' ;
24
- import type { ExtendedError } from '../../Core/Devtools/parseErrorStack ' ;
24
+ import type { ExtendedError } from '../../Core/ExtendedError ' ;
25
25
import NativeLogBox from '../../NativeModules/specs/NativeLogBox' ;
26
26
export type LogBoxLogs = Set < LogBoxLog > ;
27
27
export type LogData = $ReadOnly < { |
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const prettyFormat = require('pretty-format');
17
17
import getDevServer from '../Core/Devtools/getDevServer' ;
18
18
import NativeRedBox from '../NativeModules/specs/NativeRedBox' ;
19
19
import LogBox from '../LogBox/LogBox' ;
20
- import type { ExtendedError } from '../Core/Devtools/parseErrorStack ' ;
20
+ import type { ExtendedError } from '../Core/ExtendedError ' ;
21
21
22
22
const pendingEntryPoints = [ ] ;
23
23
let hmrClient = null ;
You can’t perform that action at this time.
0 commit comments