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';
|
---|
2 | require('../../modules/es.object.to-string');
|
---|
3 | require('../../modules/es.promise');
|
---|
4 | require('../../modules/es.promise.try');
|
---|
5 | var apply = require('../../internals/function-apply');
|
---|
6 | var isCallable = require('../../internals/is-callable');
|
---|
7 | var path = require('../../internals/path');
|
---|
8 |
|
---|
9 | var Promise = path.Promise;
|
---|
10 | var $try = Promise['try'];
|
---|
11 |
|
---|
12 | // eslint-disable-next-line no-unused-vars -- required for arity
|
---|
13 | module.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.