mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Upgrade to Flow v0.68.0
Reviewed By: gabelevi Differential Revision: D7310349 fbshipit-source-id: 70d29815dd7912704aec8a015c970be3fafeeba3
This commit is contained in:
committed by
Facebook Github Bot
parent
5347ecfd29
commit
0d924dd629
@@ -103,6 +103,9 @@ class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) {
|
||||
const {headers = {}, ...unrecognized} = options || {};
|
||||
|
||||
// Preserve deprecated backwards compatibility for the 'origin' option
|
||||
/* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.68 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
if (unrecognized && typeof unrecognized.origin === 'string') {
|
||||
console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.');
|
||||
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
|
||||
|
||||
Reference in New Issue
Block a user