MCPcopy
hub / github.com/react/create-react-app / Promise

Function Promise

packages/react-error-overlay/fixtures/bundle.mjs:12851–12864  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

12849module.exports = Promise;
12850
12851function Promise(fn) {
12852 if (typeof this !== 'object') {
12853 throw new TypeError('Promises must be constructed via new');
12854 }
12855 if (typeof fn !== 'function') {
12856 throw new TypeError('not a function');
12857 }
12858 this._45 = 0;
12859 this._81 = 0;
12860 this._65 = null;
12861 this._54 = null;
12862 if (fn === noop) return;
12863 doResolve(fn, this);
12864}
12865Promise._10 = null;
12866Promise._97 = null;
12867Promise._61 = noop;

Callers

nothing calls this directly

Calls 1

doResolveFunction · 0.70

Tested by

no test coverage detected