Prevent reposting of javascript errors

Closes: #14359
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2018-06-05 01:54:52 +02:00
parent 463cc03f44
commit fa303ee292
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -15,6 +15,10 @@ var ErrorReport = {
* @return void
*/
error_handler: function (exception) {
// issue: 14359
if (JSON.stringify(ErrorReport._last_exception) === JSON.stringify(exception)) {
return;
}
if (exception.name === null || typeof(exception.name) === 'undefined') {
exception.name = ErrorReport._extractExceptionName(exception);
}