mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
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:
committed by
Facebook Github Bot
parent
448a665286
commit
aaa4a38fbc
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user