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 801ae0f15e
commit bc3234253c

View File

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