UNPKG

661 BJavaScriptView Raw
1/**
2 * Copyright 2013-present, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
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 *
10 */
11
12'use strict';
13
14var canDefineProperty = false;
15if (process.env.NODE_ENV !== 'production') {
16 try {
17 // $FlowFixMe https://github.com/facebook/flow/issues/285
18 Object.defineProperty({}, 'x', { get: function () {} });
19 canDefineProperty = true;
20 } catch (x) {
21 // IE will fail on defineProperty
22 }
23}
24
25module.exports = canDefineProperty;
\No newline at end of file