1 | /**
|
2 | * Copyright (c) 2013-present, Facebook, Inc.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | *
|
7 | *
|
8 | */
|
9 |
|
10 | ;
|
11 |
|
12 | var canDefineProperty = false;
|
13 | if (process.env.NODE_ENV !== 'production') {
|
14 | try {
|
15 | // $FlowFixMe https://github.com/facebook/flow/issues/285
|
16 | Object.defineProperty({}, 'x', { get: function () {} });
|
17 | canDefineProperty = true;
|
18 | } catch (x) {
|
19 | // IE will fail on defineProperty
|
20 | }
|
21 | }
|
22 |
|
23 | module.exports = canDefineProperty; |
\ | No newline at end of file |