dockerized_openAger/nodered/rootfs/data/node_modules/es-abstract/2018/PromiseResolve.js

16 lines
377 B
JavaScript
Raw Normal View History

2020-10-17 16:42:50 +00:00
'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);
};