/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/whatwg-url/dist/VoidFunction.js
30 строк
833 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); exports.convert = (value, { context = "The provided value" } = {}) => { if (typeof value !== "function") { throw new TypeError(context + " is not a function"); } function invokeTheCallbackFunction() { if (new.target !== undefined) { throw new Error("Internal error: invokeTheCallbackFunction is not a constructor"); } const thisArg = utils.tryWrapperForImpl(this); let callResult; callResult = Reflect.apply(value, thisArg, []); } invokeTheCallbackFunction.construct = () => { let callResult = Reflect.construct(value, []); }; invokeTheCallbackFunction[utils.wrapperSymbol] = value; invokeTheCallbackFunction.objectReference = value; return invokeTheCallbackFunction; };