Skip to content

Commit 3eaf245

Browse files
motiz88facebook-github-bot
authored andcommitted
Pop frames correctly in console.error handler
Reviewed By: cpojer Differential Revision: D16648992 fbshipit-source-id: 4581e2cd6859f27bc384fc3ab328ab5b9414c704
1 parent e557901 commit 3eaf245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Core/ExceptionsManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function reactConsoleErrorHandler() {
134134
}
135135
const error: ExtendedError = new SyntheticError(str);
136136
error.name = 'console.error';
137-
error.framesToPop = 1;
137+
error.framesToPop = (error.framesToPop || 0) + 1;
138138
reportException(error, /* isFatal */ false);
139139
}
140140
}

0 commit comments

Comments
 (0)