mirror of https://github.com/status-im/metro.git
Update error-guard.js
Summary: This vars should be let instead of const because they are reassigned. Closes https://github.com/facebook/react-native/pull/10818 Differential Revision: D4179219 Pulled By: javache fbshipit-source-id: b09959c5ff31ad1a896d454011dffd915a0a44c4
This commit is contained in:
parent
4fafef79cb
commit
170ae0a520
|
@ -15,14 +15,14 @@
|
|||
*/
|
||||
|
||||
/* eslint strict:0 */
|
||||
const _inGuard = 0;
|
||||
let _inGuard = 0;
|
||||
|
||||
/**
|
||||
* This is the error handler that is called when we encounter an exception
|
||||
* when loading a module. This will report any errors encountered before
|
||||
* ExceptionsManager is configured.
|
||||
*/
|
||||
const _globalHandler = function onError(e) {
|
||||
let _globalHandler = function onError(e) {
|
||||
throw e;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue