Skip to content

Commit 1800357

Browse files
authored
Type canDefineProperty (react#7500)
1 parent ad3c651 commit 1800357

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/shared/utils/canDefineProperty.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @flow
910
* @providesModule canDefineProperty
1011
*/
1112

@@ -14,6 +15,7 @@
1415
var canDefineProperty = false;
1516
if (__DEV__) {
1617
try {
18+
// $FlowFixMe https://github.com/facebook/flow/issues/285
1719
Object.defineProperty({}, 'x', {get: function() {}});
1820
canDefineProperty = true;
1921
} catch (x) {

0 commit comments

Comments
 (0)