Upgrade to Flow v0.88.0

Summary:
allow-large-files

https://our.intern.facebook.com/intern/wiki/Flow/Flow_Release_Process/#update-xplat-js

Reviewed By: samwgoldman

Differential Revision: D13418170

fbshipit-source-id: 91ab0d2788c1061b8c81a39f8a017eedea48abe2
This commit is contained in:
Nat Mote
2018-12-11 19:57:03 -08:00
committed by Facebook Github Bot
parent 448a665286
commit aaa4a38fbc
9 changed files with 21 additions and 27 deletions

View File

@@ -142,8 +142,14 @@ function setInContext(inst, path: Array<string | number>, value: any) {
function setIn(obj: Object, path: Array<string | number>, value: any) {
const last = path.pop();
/* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.88 was deployed. To see the error, delete this comment
* and run Flow. */
const parent = path.reduce((obj_, attr) => (obj_ ? obj_[attr] : null), obj);
if (parent) {
/* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.88 was deployed. To see the error, delete this
* comment and run Flow. */
parent[last] = value;
}
}