1 parent ad3c651 commit 1800357Copy full SHA for 1800357
1 file changed
src/shared/utils/canDefineProperty.js
@@ -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 @@
14
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) {
0 commit comments