Enforce function names

This commit is contained in:
Pierre Ossman
2018-09-06 16:53:40 +02:00
parent d80d9d3731
commit e777765320
5 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
// No ES6 can be used in this file since it's used for the translation
/* eslint-disable prefer-arrow-callback */
(function() {
(function _scope() {
"use strict";
// Fallback for all uncought errors
@@ -53,6 +53,6 @@
// from being printed to the browser console.
return false;
}
window.addEventListener('error', function (evt) { handleError(evt, evt.error); });
window.addEventListener('unhandledrejection', function (evt) { handleError(evt.reason, evt.reason); });
window.addEventListener('error', function onerror(evt) { handleError(evt, evt.error); });
window.addEventListener('unhandledrejection', function onreject(evt) { handleError(evt.reason, evt.reason); });
})();