aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/features/promise/try.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/features/promise/try.js')
-rw-r--r--node_modules/core-js/features/promise/try.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/core-js/features/promise/try.js b/node_modules/core-js/features/promise/try.js
new file mode 100644
index 0000000..b7a6e3b
--- /dev/null
+++ b/node_modules/core-js/features/promise/try.js
@@ -0,0 +1,11 @@
+'use strict';
+require('../../modules/es.promise');
+require('../../modules/esnext.promise.try');
+var path = require('../../internals/path');
+
+var Promise = path.Promise;
+var promiseTry = Promise['try'];
+
+module.exports = { 'try': function (callbackfn) {
+ return promiseTry.call(typeof this === 'function' ? this : Promise, callbackfn);
+} }['try'];