Merge pull request 'Only run extractFramesGecko when required' (#4) from f0x-validatem/core:parse-stacktrace-fix into master

Reviewed-on: validatem/core#4
remotes/1691127533660230928/master
Sven Slootweg 2 years ago
commit ff18ea070f

@ -99,7 +99,8 @@ 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( return defaultValue(
extractFramesV8(stack), extractFramesV8(stack),
extractFramesGecko(stack) () => extractFramesGecko(stack),
{ evaluate: true }
); );
} }

Loading…
Cancel
Save