File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface ParsedErrorFrame {
2121 } ;
2222}
2323
24- export type SpecialHermesStackTraceFrameTypes = 'native' | 'address at' | 'empty url' ;
24+ export type SpecialHermesStackTraceFrameTypes = 'native' | 'address at' | 'empty url' | 'skipping x frames' ;
2525
2626function getSpecialHermesStackTraceFrameType ( {
2727 url,
@@ -77,6 +77,16 @@ export function parseSourcePositionsFromErrorStack(
7777 const match = / ^ \s * a t \s ( a s y n c \s ) ? / . exec ( line ) ;
7878 if ( ! match ) {
7979 if ( linkInfos . length && linkInfos [ linkInfos . length - 1 ] . isCallFrame ) {
80+ if ( / ^ \s * ... s k i p p i n g \d + f r a m e s $ / . exec ( line ) ) {
81+ if ( ! linkInfos [ linkInfos . length - 1 ] . link ) {
82+ // Combine builtin frames.
83+ linkInfos [ linkInfos . length - 1 ] . line += `\n${ line } ` ;
84+ } else {
85+ linkInfos . push ( { line, isCallFrame : false } ) ;
86+ }
87+ specialHermesFramesParsed . add ( 'skipping x frames' ) ;
88+ continue ;
89+ }
8090 Host . rnPerfMetrics . stackTraceSymbolicationFailed ( stack , line , '"at (url)" not found' ) ;
8191 return null ;
8292 }
You can’t perform that action at this time.
0 commit comments