fix(testrunner): support throwing non-errors
This commit is contained in:
parent
05a1e1c641
commit
53a7e342e9
|
|
@ -27,6 +27,8 @@ class SourceMapSupport {
|
|||
}
|
||||
|
||||
async rewriteStackTraceWithSourceMaps(error) {
|
||||
if (!error.stack || typeof error.stack !== 'string')
|
||||
return;
|
||||
const stackFrames = error.stack.split('\n');
|
||||
for (let i = 0; i < stackFrames.length; ++i) {
|
||||
const stackFrame = stackFrames[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue