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