no thoughts, head segfaulted

This commit is contained in:
Letter N
2020-08-15 16:48:10 +08:00
parent 15e659fc9c
commit a327e7d33f
15 changed files with 628 additions and 71 deletions
@@ -39,6 +39,10 @@ export const loadSourceMaps = async bundleDir => {
};
export const retrace = stack => {
if (typeof stack !== 'string') {
logger.log('ERROR: Stack is not a string!', stack);
return stack;
}
const header = stack.split(/\n\s.*at/)[0];
const mappedStack = StackTraceParser.parse(stack)
.map(frame => {