/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/es-abstract/2021/FromPropertyDescriptor.js
16 строк
536 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
'use strict'; var $TypeError = require('es-errors/type'); var isPropertyDescriptor = require('../helpers/records/property-descriptor'); var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor'); // https://262.ecma-international.org/6.0/#sec-frompropertydescriptor module.exports = function FromPropertyDescriptor(Desc) { if (typeof Desc !== 'undefined' && !isPropertyDescriptor(Desc)) { throw new $TypeError('Assertion failed: `Desc` must be a Property Descriptor'); } return fromPropertyDescriptor(Desc); };