Only run extractFramesGecko when required #4

Merged
joepie91 merged 1 commit from f0x-validatem/core:parse-stacktrace-fix into master 2022-10-29 14:35:58 +02:00
Contributor

Fixes #2, previous defaultValue call would always evaluate both stacktrace methods, and extractFramesGecko throws an error on a V8 stacktrace because the parsed first line/character number has a ) on the end, which is not a number.

With this code the V8 result is properly returned if available, before evaluating Gecko

Fixes https://git.cryto.net/validatem/core/issues/2, previous `defaultValue` call would always evaluate both stacktrace methods, and `extractFramesGecko` throws an error on a V8 stacktrace because the parsed first line/character number has a `)` on the end, which is not a number. With this code the V8 result is properly returned if available, before evaluating Gecko
f0x added 1 commit 2022-10-18 14:53:32 +02:00
f0x force-pushed parse-stacktrace-fix from 8e663bcf3a to 950b35d9c3 2022-10-29 02:42:29 +02:00 Compare
joepie91 merged commit ff18ea070f into master 2022-10-29 14:35:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: validatem/core#4
No description provided.