MCPcopy Index your code
hub / github.com/react/create-react-app / Promise

Function Promise

packages/react-error-overlay/fixtures/bundle_u.mjs:13011–13024  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13009module.exports = Promise;
13010
13011function Promise(fn) {
13012 if (typeof this !== 'object') {
13013 throw new TypeError('Promises must be constructed via new');
13014 }
13015 if (typeof fn !== 'function') {
13016 throw new TypeError('not a function');
13017 }
13018 this._45 = 0;
13019 this._81 = 0;
13020 this._65 = null;
13021 this._54 = null;
13022 if (fn === noop) return;
13023 doResolve(fn, this);
13024}
13025Promise._10 = null;
13026Promise._97 = null;
13027Promise._61 = noop;

Callers

nothing calls this directly

Calls 1

doResolveFunction · 0.70

Tested by

no test coverage detected