@samitouri / QOS-React / commits / 18003578b1

Type canDefineProperty (#7500)

Christopher Chedeau committed Aug 25, 2016 at 10:46 UTC 18003578b19efa9b2c72136398756c96ccb2c76f
1 file changed +2
src/shared/utils/canDefineProperty.js
+2
@@ -6,6 +6,7 @@
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 + * @flow
10 * @providesModule canDefineProperty
11 */
12
@@ -14,6 +15,7 @@
15 var canDefineProperty = false;
16 if (__DEV__) {
17 try {
18 + // $FlowFixMe https://github.com/facebook/flow/issues/285
19 Object.defineProperty({}, 'x', {get: function() {}});
20 canDefineProperty = true;
21 } catch (x) {