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

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 562 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.