mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
committed by
Paul O’Shannessy
parent
cb963b09ab
commit
52235eadfd
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user