|
|
@ -18,6 +18,9 @@ function maybeTrim(value) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function parseLocation(locationString) {
|
|
|
|
function parseLocation(locationString) {
|
|
|
|
|
|
|
|
if (locationString === "<anonymous>") {
|
|
|
|
|
|
|
|
return { anonymous: true };
|
|
|
|
|
|
|
|
} else {
|
|
|
|
let match = positionRegex.exec(locationString);
|
|
|
|
let match = positionRegex.exec(locationString);
|
|
|
|
|
|
|
|
|
|
|
|
if (match != null) {
|
|
|
|
if (match != null) {
|
|
|
@ -30,6 +33,7 @@ function parseLocation(locationString) {
|
|
|
|
throw new Error(`Could not parse location from string: ${locationString}`);
|
|
|
|
throw new Error(`Could not parse location from string: ${locationString}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function extractFrames(stack) {
|
|
|
|
function extractFrames(stack) {
|
|
|
|
// TODO: Maybe make this code even more cautious, and match each stacktrace line individually, aborting as soon as any one line cannot be parsed?
|
|
|
|
// TODO: Maybe make this code even more cautious, and match each stacktrace line individually, aborting as soon as any one line cannot be parsed?
|
|
|
|