UNPKG

605 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
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 * @flow
8 * @format
9 */
10'use strict';
11
12const {polyfillGlobal} = require('PolyfillFunctions');
13
14/**
15 * Set up Promise. The native Promise implementation throws the following error:
16 * ERROR: Event loop not supported.
17 *
18 * If you don't need these polyfills, don't use InitializeCore; just directly
19 * require the modules you need from InitializeCore for setup.
20 */
21polyfillGlobal('Promise', () => require('Promise'));