UNPKG

1.35 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = _default;
7
8var _global = _interopRequireDefault(require("./intrinsics/prepack/global.js"));
9
10var _global2 = _interopRequireDefault(require("./intrinsics/dom/global.js"));
11
12var _global3 = _interopRequireDefault(require("./intrinsics/react-native/global.js"));
13
14var _global4 = _interopRequireDefault(require("./intrinsics/fb-www/global.js"));
15
16function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
18/**
19 * Copyright (c) 2017-present, Facebook, Inc.
20 * All rights reserved.
21 *
22 * This source code is licensed under the BSD-style license found in the
23 * LICENSE file in the root directory of this source tree. An additional grant
24 * of patent rights can be found in the PATENTS file in the same directory.
25 */
26
27/* strict-local */
28function _default(realm) {
29 (0, _global.default)(realm);
30
31 if (realm.isCompatibleWith("browser")) {
32 (0, _global2.default)(realm);
33 }
34
35 if (realm.isCompatibleWith("fb-www") || realm.isCompatibleWith("node-react")) {
36 (0, _global2.default)(realm);
37 (0, _global4.default)(realm);
38 }
39
40 if (realm.isCompatibleWith(realm.MOBILE_JSC_VERSION) || realm.isCompatibleWith("mobile")) {
41 (0, _global3.default)(realm);
42 }
43
44 return realm;
45}
46//# sourceMappingURL=globals.js.map
\No newline at end of file