mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pop frames correctly in console.error handler
Reviewed By: cpojer Differential Revision: D16648992 fbshipit-source-id: 4581e2cd6859f27bc384fc3ab328ab5b9414c704
This commit is contained in:
committed by
Facebook Github Bot
parent
e557901267
commit
3eaf245540
@@ -134,7 +134,7 @@ function reactConsoleErrorHandler() {
|
||||
}
|
||||
const error: ExtendedError = new SyntheticError(str);
|
||||
error.name = 'console.error';
|
||||
error.framesToPop = 1;
|
||||
error.framesToPop = (error.framesToPop || 0) + 1;
|
||||
reportException(error, /* isFatal */ false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user