From 1b37017eb1e182568a3593d2cfbcae89bf19bfc4 Mon Sep 17 00:00:00 2001 From: "glevi@fb.com" Date: Mon, 8 Jan 2018 12:45:38 -0800 Subject: [PATCH] @allow-large-files [Flow] Upgrade xplat/js to flow v0.63 Reviewed By: samwgoldman Differential Revision: D6675320 fbshipit-source-id: 85575a6f30a50a3c40c6b46ba36f8cd33c091b1d --- packages/metro/src/Server/index.js | 3 +++ packages/metro/src/lib/BatchProcessor.js | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/packages/metro/src/Server/index.js b/packages/metro/src/Server/index.js index aabff411..efc5e4dc 100644 --- a/packages/metro/src/Server/index.js +++ b/packages/metro/src/Server/index.js @@ -452,6 +452,9 @@ class Server { }; } + /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.63 was deployed. To see the error delete this + * comment and run Flow. */ this._reporter.update({ buildID, bundleDetails: { diff --git a/packages/metro/src/lib/BatchProcessor.js b/packages/metro/src/lib/BatchProcessor.js index 2f1359a1..0fc7de61 100644 --- a/packages/metro/src/lib/BatchProcessor.js +++ b/packages/metro/src/lib/BatchProcessor.js @@ -94,11 +94,17 @@ class BatchProcessor { _processQueueOnceReady() { if (this._queue.length >= this._options.maximumItems) { + /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.63 was deployed. To see the error delete this + * comment and run Flow. */ clearTimeout(this._timeoutHandle); process.nextTick(this._processQueue); return; } if (this._timeoutHandle == null) { + /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.63 was deployed. To see the error delete this + * comment and run Flow. */ this._timeoutHandle = setTimeout( this._processQueue, this._options.maximumDelayMs,