You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
377 B
16 lines
377 B
4 years ago
|
'use strict';
|
||
|
|
||
|
var callBound = require('../helpers/callBound');
|
||
|
|
||
|
var $PromiseResolve = callBound('Promise.resolve', true);
|
||
|
|
||
|
// 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);
|
||
|
};
|
||
|
|