File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -346,11 +346,13 @@ printStackTrace.implementation.prototype = {
346346 frame = stack [ i ] , ref = reStack . exec ( frame ) ;
347347
348348 if ( ref ) {
349- var m = reRef . exec ( ref [ 1 ] ) , file = m [ 1 ] ,
350- lineno = m [ 2 ] , charno = m [ 3 ] || 0 ;
351- if ( file && this . isSameDomain ( file ) && lineno ) {
352- var functionName = this . guessAnonymousFunction ( file , lineno , charno ) ;
353- stack [ i ] = frame . replace ( '{anonymous}' , functionName ) ;
349+ var m = reRef . exec ( ref [ 1 ] ) ;
350+ if ( m ) {
351+ var file = m [ 1 ] , lineno = m [ 2 ] , charno = m [ 3 ] || 0 ;
352+ if ( file && this . isSameDomain ( file ) && lineno ) {
353+ var functionName = this . guessAnonymousFunction ( file , lineno , charno ) ;
354+ stack [ i ] = frame . replace ( '{anonymous}' , functionName ) ;
355+ }
354356 }
355357 }
356358 }
You can’t perform that action at this time.
0 commit comments