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

Reviewed-on: #4
This commit is contained in:
Sven Slootweg 2022-10-29 14:35:56 +02:00
commit ff18ea070f

View file

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