deps/v8/src/js/promise.js
function CreateResolvingFunctions(promise) {
  var alreadyResolved = false;

  // ES#sec-promise-resolve-functions
  // Promise Resolve Functions
  var resolve = value => {
    if (alreadyResolved === true) return;
    alreadyResolved = true;
    ResolvePromise(promise, value);
  };

  // ES#sec-promise-reject-functions
  // Promise Reject Functions
  var reject = reason => {
    if (alreadyResolved === true) return;
    alreadyResolved = true;
    RejectPromise(promise, reason);
  };

  return {
    __proto__: null,
    resolve: resolve,
    reject: reject
  };
}
function CreateResolvingFunctions(promise) {
  var alreadyResolved = false;

  // ES#sec-promise-resolve-functions
  // Promise Resolve Functions
  var resolve = value => {
    if (alreadyResolved === true) return;
    alreadyResolved = true;
    ResolvePromise(promise, value);
  };

  // ES#sec-promise-reject-functions
  // Promise Reject Functions
  var reject = reason => {
    if (alreadyResolved === true) return;
    alreadyResolved = true;
    RejectPromise(promise, reason);
  };

  return {
    __proto__: null,
    resolve: resolve,
    reject: reject
  };
}
function CreateResolvingFunctions ( promise ) { var alreadyResolved = false ; // ES#sec-promise-resolve-functions // Promise Resolve Functions var resolve = value => { if ( alreadyResolved === true ) return ; alreadyResolved = true ; ResolvePromise ( promise , value ) ; } ; // ES#sec-promise-reject-functions // Promise Reject Functions var reject = reason => { if ( alreadyResolved === true ) return ; alreadyResolved = true ; RejectPromise ( promise , reason ) ; } ; return { __proto__ : null , resolve : resolve , reject : reject } ; }
ES#sec-createresolvingfunctions CreateResolvingFunctions ( promise )
ES#sec - createresolvingfunctions CreateResolvingFunctions ( promise )