mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Take into account that there's an extra 1st frame in Chrome only
This commit is contained in:
		
							parent
							
								
									4acf9eed83
								
							
						
					
					
						commit
						651df1a077
					
				| 
						 | 
				
			
			@ -50,7 +50,9 @@ export const ActionCreators = {
 | 
			
		|||
        stack = error.stack;
 | 
			
		||||
        if (typeof Error.stackTraceLimit !== 'number' || Error.stackTraceLimit > traceLimit) {
 | 
			
		||||
          frames = stack.split('\n');
 | 
			
		||||
          if (frames.length > traceLimit) stack = frames.slice(0, traceLimit + 1).join('\n'); // +1 for `Error\n`
 | 
			
		||||
          if (frames.length > traceLimit) {
 | 
			
		||||
            stack = frames.slice(0, traceLimit + (frames[0] === 'Error' ? 1 : 0)).join('\n');
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user