[ReactNative] Ignore bad inputs to parseErrorStack

This commit is contained in:
Alex Kotliarskyi
2015-06-22 10:08:20 -07:00
parent 972b546fc6
commit 1429b78af5
2 changed files with 53 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ function resolveSourceMaps(sourceMapInstance, stackFrame) {
}
function parseErrorStack(e, sourceMapInstance) {
if (!e || !e.stack) {
return [];
}
var stack = stacktraceParser.parse(e.stack);
var framesToPop = e.framesToPop || 0;