mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
[ReactNative] Ignore bad inputs to parseErrorStack
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user