mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-27 05:15:25 +00:00
16 lines
377 B
JavaScript
16 lines
377 B
JavaScript
|
'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);
|
||
|
};
|
||
|
|