Fix flow in InitializeCore
Reviewed By: yungsters Differential Revision: D10115867 fbshipit-source-id: be619b9d6fc30e318cbc0e0fc6e741d80dd94a4b
This commit is contained in:
parent
53b487d215
commit
e2210ab752
|
@ -91,9 +91,6 @@ polyfillGlobal('regeneratorRuntime', () => {
|
||||||
// The require just sets up the global, so make sure when we first
|
// The require just sets up the global, so make sure when we first
|
||||||
// invoke it the global does not exist
|
// invoke it the global does not exist
|
||||||
delete global.regeneratorRuntime;
|
delete global.regeneratorRuntime;
|
||||||
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
|
||||||
* error found when Flow v0.54 was deployed. To see the error delete this
|
|
||||||
* comment and run Flow. */
|
|
||||||
require('regenerator-runtime/runtime');
|
require('regenerator-runtime/runtime');
|
||||||
return global.regeneratorRuntime;
|
return global.regeneratorRuntime;
|
||||||
});
|
});
|
||||||
|
@ -214,9 +211,6 @@ if (__DEV__) {
|
||||||
|
|
||||||
// Set up inspector
|
// Set up inspector
|
||||||
const JSInspector = require('JSInspector');
|
const JSInspector = require('JSInspector');
|
||||||
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This comment
|
|
||||||
* suppresses an error found when Flow v0.56 was deployed. To see the error
|
|
||||||
* delete this comment and run Flow. */
|
|
||||||
JSInspector.registerAgent(require('NetworkAgent'));
|
JSInspector.registerAgent(require('NetworkAgent'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import type EventSender from 'InspectorAgent';
|
import type {EventSender} from 'InspectorAgent';
|
||||||
|
|
||||||
interface Agent {
|
interface Agent {
|
||||||
constructor(eventSender: EventSender): void;
|
constructor(eventSender: EventSender): void;
|
||||||
|
|
Loading…
Reference in New Issue