%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/core-js-pure/modules/
Upload File :
Create Path :
Current File : //var/www/html/node_modules/core-js-pure/modules/esnext.promise.try.js

'use strict';
var $ = require('../internals/export');
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
var perform = require('../internals/perform');

// `Promise.try` method
// https://github.com/tc39/proposal-promise-try
$({ target: 'Promise', stat: true, forced: true }, {
  'try': function (callbackfn) {
    var promiseCapability = newPromiseCapabilityModule.f(this);
    var result = perform(callbackfn);
    (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);
    return promiseCapability.promise;
  }
});

Zerion Mini Shell 1.0