diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 5195665fe64..af8c053e02d 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -109,7 +109,7 @@ require('RCTLog'); // Set up error handler if (!global.__fbDisableExceptionsManager) { - function handleError(e, isFatal) { + const handleError = (e, isFatal) => { try { ExceptionsManager.handleException(e, isFatal); } catch (ee) { @@ -118,7 +118,7 @@ if (!global.__fbDisableExceptionsManager) { /* eslint-enable no-console-disallow */ throw e; } - } + }; const ErrorUtils = require('ErrorUtils'); ErrorUtils.setGlobalHandler(handleError);