File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
- [ browser] ref: Mangle more stuff, reduce bundle size
6
+ - [ browser] fix: Support for ram bundle frames
6
7
- [ node] fix: Expose lastEventId method
7
8
8
9
## 5.1.1
Original file line number Diff line number Diff line change @@ -474,7 +474,10 @@ TraceKit._computeStackTrace = (function _computeStackTraceWrapper() {
474
474
}
475
475
476
476
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 > | [ a - z ] : | \/ ) .* ?) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \) ? \s * $ / i,
477
- 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 | m o z - e x t e n s i o n ) .* ?: \/ .* ?| \[ n a t i v e c o d e \] | [ ^ @ ] * b u n d l e ) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \s * $ / i,
477
+ // gecko regex: `(?:bundle|\d+\.js)`: `bundle` is for react native, `\d+\.js` also but specifically for ram bundles because it
478
+ // generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js
479
+ // We need this specific case for now because we want no other regex to match.
480
+ 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 | m o z - e x t e n s i o n ) .* ?: \/ .* ?| \[ n a t i v e c o d e \] | [ ^ @ ] * (?: b u n d l e | \d + \. j s ) ) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \s * $ / i,
478
481
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,
479
482
// Used to additionally parse URL/line/column from eval frames
480
483
isEval ,
You can’t perform that action at this time.
0 commit comments