From 52235eadfdb96681e0f8182ca3cdf344f1f96d5f Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 25 Aug 2016 10:46:49 -0700 Subject: [PATCH] Type canDefineProperty (#7500) (cherry picked from commit 18003578b19efa9b2c72136398756c96ccb2c76f) --- src/shared/utils/canDefineProperty.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/utils/canDefineProperty.js b/src/shared/utils/canDefineProperty.js index 864a473249..402eb6e533 100644 --- a/src/shared/utils/canDefineProperty.js +++ b/src/shared/utils/canDefineProperty.js @@ -6,6 +6,7 @@ * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * + * @flow * @providesModule canDefineProperty */ @@ -14,6 +15,7 @@ var canDefineProperty = false; if (__DEV__) { try { + // $FlowFixMe https://github.com/facebook/flow/issues/285 Object.defineProperty({}, 'x', {get: function() {}}); canDefineProperty = true; } catch (x) {