Fix throwing when no source maps on calling forEach of null

We need here to show frames even if all came from node_modules
This commit is contained in:
Zalmoxisus 2018-12-12 22:35:56 +02:00
parent 1721069143
commit 58593c3aa5

View File

@ -29,6 +29,7 @@ function getStackFrames(
enhancedFramesPromise = map(parsedFrames, contextSize);
}
return enhancedFramesPromise.then(enhancedFrames => {
/*
if (
enhancedFrames
.map(f => f._originalFileName)
@ -36,6 +37,7 @@ function getStackFrames(
) {
return null;
}
*/
return enhancedFrames.filter(
({ functionName }) =>
functionName == null ||