try.js 317 B

12345678
  1. 'use strict';
  2. require('../../modules/es6.promise');
  3. require('../../modules/es7.promise.try');
  4. var $Promise = require('../../modules/_core').Promise;
  5. var $try = $Promise['try'];
  6. module.exports = { 'try': function (callbackfn) {
  7. return $try.call(typeof this === 'function' ? this : $Promise, callbackfn);
  8. } }['try'];