source: node_modules/core-js-pure/full/promise/try.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 449 bytes
Line 
1'use strict';
2require('../../modules/es.promise');
3require('../../modules/esnext.promise.try');
4var call = require('../../internals/function-call');
5var isCallable = require('../../internals/is-callable');
6var path = require('../../internals/path');
7
8var Promise = path.Promise;
9var promiseTry = Promise['try'];
10
11module.exports = { 'try': function (callbackfn) {
12 return call(promiseTry, isCallable(this) ? this : Promise, callbackfn);
13} }['try'];
Note: See TracBrowser for help on using the repository browser.