Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
348 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | require('../../modules/es.promise');
|
---|
3 | require('../../modules/esnext.promise.try');
|
---|
4 | var path = require('../../internals/path');
|
---|
5 |
|
---|
6 | var Promise = path.Promise;
|
---|
7 | var promiseTry = Promise['try'];
|
---|
8 |
|
---|
9 | module.exports = { 'try': function (callbackfn) {
|
---|
10 | return promiseTry.call(typeof this === 'function' ? this : Promise, callbackfn);
|
---|
11 | } }['try'];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.