Skip to content

Commit

Permalink
fix babel 'strict mode' error
Browse files Browse the repository at this point in the history
Summary:
need to remove function declaration in a lexically nested statement
because babel uses 'use strict' by default now
Closes facebook#11390

Differential Revision: D4308275

fbshipit-source-id: 0d073361d25b23fb67f001225feb72532af38683
  • Loading branch information
karpoff authored and Facebook Github Bot committed Dec 11, 2016
1 parent 445182c commit 4252ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Core/InitializeCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -118,7 +118,7 @@ if (!global.__fbDisableExceptionsManager) {
/* eslint-enable no-console-disallow */
throw e;
}
}
};

const ErrorUtils = require('ErrorUtils');
ErrorUtils.setGlobalHandler(handleError);
Expand Down

0 comments on commit 4252ac7

Please sign in to comment.