aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/fn/promise/try.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/fn/promise/try.js')
-rw-r--r--node_modules/core-js/fn/promise/try.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/core-js/fn/promise/try.js b/node_modules/core-js/fn/promise/try.js
new file mode 100644
index 00000000..b28919f2
--- /dev/null
+++ b/node_modules/core-js/fn/promise/try.js
@@ -0,0 +1,8 @@
+'use strict';
+require('../../modules/es6.promise');
+require('../../modules/es7.promise.try');
+var $Promise = require('../../modules/_core').Promise;
+var $try = $Promise['try'];
+module.exports = { 'try': function (callbackfn) {
+ return $try.call(typeof this === 'function' ? this : $Promise, callbackfn);
+} }['try'];