Skip to content
Permalink
Browse files

Pop frames correctly in console.error handler

Reviewed By: cpojer

Differential Revision: D16648992

fbshipit-source-id: 4581e2cd6859f27bc384fc3ab328ab5b9414c704
  • Loading branch information...
motiz88 authored and facebook-github-bot committed Aug 5, 2019
1 parent e557901 commit 3eaf2455402b5ad73c8a059311f0cb213df9dd28
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Core/ExceptionsManager.js
@@ -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);
}
}

0 comments on commit 3eaf245

Please sign in to comment.
You can’t perform that action at this time.