/
home
/
infinitibizsol
/
irfarms.infinitibizsol.com
/
node_modules
/
es-abstract
/
2024
/
File Upload :
llllll
Current File: /home/infinitibizsol/irfarms.infinitibizsol.com/node_modules/es-abstract/2024/GetPromiseResolve.js
'use strict'; var $TypeError = require('es-errors/type'); var Get = require('./Get'); var IsCallable = require('./IsCallable'); var IsConstructor = require('./IsConstructor'); // https://262.ecma-international.org/12.0/#sec-getpromiseresolve module.exports = function GetPromiseResolve(promiseConstructor) { if (!IsConstructor(promiseConstructor)) { throw new $TypeError('Assertion failed: `promiseConstructor` must be a constructor'); } var promiseResolve = Get(promiseConstructor, 'resolve'); if (IsCallable(promiseResolve) === false) { throw new $TypeError('`resolve` method is not callable'); } return promiseResolve; };
Copyright ©2k19 -
Hexid
|
Tex7ure