stacktrace parsing

main
f0x 2 years ago
parent cfaab3cfae
commit dc0ce46e7f

@ -97,10 +97,12 @@ function extractFramesGecko(stack) {
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?
return defaultValue( let v8Frames = extractFramesV8(stack);
extractFramesV8(stack), if (v8Frames != null) {
extractFramesGecko(stack) return v8Frames;
); } else {
return extractFramesGecko(stack);
}
} }
module.exports = function parseStackTrace(error) { module.exports = function parseStackTrace(error) {

Loading…
Cancel
Save