source: imaps-frontend/node_modules/core-js/internals/promise-resolve.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 441 bytes
Line 
1'use strict';
2var anObject = require('../internals/an-object');
3var isObject = require('../internals/is-object');
4var newPromiseCapability = require('../internals/new-promise-capability');
5
6module.exports = function (C, x) {
7 anObject(C);
8 if (isObject(x) && x.constructor === C) return x;
9 var promiseCapability = newPromiseCapability.f(C);
10 var resolve = promiseCapability.resolve;
11 resolve(x);
12 return promiseCapability.promise;
13};
Note: See TracBrowser for help on using the repository browser.