source: imaps-frontend/node_modules/core-js/es/promise/try.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 564 bytes
Line 
1'use strict';
2require('../../modules/es.object.to-string');
3require('../../modules/es.promise');
4require('../../modules/es.promise.try');
5var apply = require('../../internals/function-apply');
6var isCallable = require('../../internals/is-callable');
7var path = require('../../internals/path');
8
9var Promise = path.Promise;
10var $try = Promise['try'];
11
12// eslint-disable-next-line no-unused-vars -- required for arity
13module.exports = ({ 'try': function (callbackfn /* , ...args */) {
14 return apply($try, isCallable(this) ? this : Promise, arguments);
15} })['try'];
Note: See TracBrowser for help on using the repository browser.