File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -392,8 +392,12 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
392
392
393
393
var chrome = / ^ \s * a t ( .* ?) ? \( ( (?: f i l e | h t t p s ? | b l o b | c h r o m e - e x t e n s i o n | n a t i v e | e v a l | w e b p a c k | < a n o n y m o u s > | \/ ) .* ?) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \) ? \s * $ / i,
394
394
gecko = / ^ \s * ( .* ?) (?: \( ( .* ?) \) ) ? (?: ^ | @ ) ( (?: f i l e | h t t p s ? | b l o b | c h r o m e | w e b p a c k | r e s o u r c e | \[ n a t i v e ) .* ?) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \s * $ / i,
395
- geckoEval = / ( \S + ) l i n e ( \d + ) (?: > e v a l l i n e \d + ) * > e v a l / i,
396
395
winjs = / ^ \s * a t (?: ( (?: \[ o b j e c t o b j e c t \] ) ? .+ ) ) ? \( ? ( (?: f i l e | m s - a p p x | h t t p s ? | w e b p a c k | b l o b ) : .* ?) : ( \d + ) (?: : ( \d + ) ) ? \) ? \s * $ / i,
396
+
397
+ // Used to additionally parse URL/line/column from eval frames
398
+ geckoEval = / ( \S + ) l i n e ( \d + ) (?: > e v a l l i n e \d + ) * > e v a l / i,
399
+ chromeEval = / \( ( \S * ) (?: : ( \d + ) ) (?: : ( \d + ) ) \) / ,
400
+
397
401
lines = ex . stack . split ( '\n' ) ,
398
402
stack = [ ] ,
399
403
submatch ,
@@ -405,7 +409,7 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
405
409
if ( ( parts = chrome . exec ( lines [ i ] ) ) ) {
406
410
var isNative = parts [ 2 ] && parts [ 2 ] . indexOf ( 'native' ) === 0 ; // start of line
407
411
var isEval = parts [ 2 ] && parts [ 2 ] . indexOf ( 'eval' ) === 0 ; // start of line
408
- if ( isEval && ( submatch = / \( ( \S * ) (?: : ( \d + ) ) (?: : ( \d + ) ) \) / . exec ( parts [ 2 ] ) ) ) {
412
+ if ( isEval && ( submatch = chromeEval . exec ( parts [ 2 ] ) ) ) {
409
413
// throw out eval line/column and use top-most line/column number
410
414
parts [ 2 ] = submatch [ 1 ] ; // url
411
415
parts [ 3 ] = submatch [ 2 ] ; // line
You can’t perform that action at this time.
0 commit comments