massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / features / promise / try.js
index b7a6e3b4f0b77200790e2e9fe1e918579817b8e8..a35f233fbf6c5869fd876495c8210301c8717b0e 100644 (file)
@@ -1,11 +1,13 @@
 'use strict';
 require('../../modules/es.promise');
 require('../../modules/esnext.promise.try');
+var call = require('../../internals/function-call');
+var isCallable = require('../../internals/is-callable');
 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);
+  return call(promiseTry, isCallable(this) ? this : Promise, callbackfn);
 } }['try'];