Skip to content

Commit 5478649

Browse files
karpoffgrabbou
authored andcommitted
fix babel 'strict mode' error
Summary: need to remove function declaration in a lexically nested statement because babel uses 'use strict' by default now Closes #11390 Differential Revision: D4308275 fbshipit-source-id: 0d073361d25b23fb67f001225feb72532af38683
1 parent 4e2166b commit 5478649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Core/InitializeCore.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ require('RCTLog');
109109

110110
// Set up error handler
111111
if (!global.__fbDisableExceptionsManager) {
112-
function handleError(e, isFatal) {
112+
const handleError = (e, isFatal) => {
113113
try {
114114
ExceptionsManager.handleException(e, isFatal);
115115
} catch (ee) {
@@ -118,7 +118,7 @@ if (!global.__fbDisableExceptionsManager) {
118118
/* eslint-enable no-console-disallow */
119119
throw e;
120120
}
121-
}
121+
};
122122

123123
const ErrorUtils = require('ErrorUtils');
124124
ErrorUtils.setGlobalHandler(handleError);

0 commit comments

Comments
 (0)