mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
18 lines
462 B
JavaScript
Generated
18 lines
462 B
JavaScript
Generated
'use strict';
|
|
|
|
var GetIntrinsic = require('get-intrinsic');
|
|
var callBind = require('call-bind');
|
|
|
|
var $resolve = GetIntrinsic('%Promise.resolve%', true);
|
|
var $PromiseResolve = $resolve && callBind($resolve);
|
|
|
|
// https://ecma-international.org/ecma-262/9.0/#sec-promise-resolve
|
|
|
|
module.exports = function PromiseResolve(C, x) {
|
|
if (!$PromiseResolve) {
|
|
throw new SyntaxError('This environment does not support Promises.');
|
|
}
|
|
return $PromiseResolve(C, x);
|
|
};
|
|
|