/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/domexception/webidl2js-wrapper.js
15 строк
600 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
"use strict"; const DOMException = require("./lib/DOMException.js"); // Special install function to make the DOMException inherit from Error. // https://heycam.github.io/webidl/#es-DOMException-specialness function installOverride(globalObject) { if (typeof globalObject.Error !== "function") { throw new Error("Internal error: Error constructor is not present on the given global object."); } DOMException.install(globalObject); Object.setPrototypeOf(globalObject.DOMException.prototype, globalObject.Error.prototype); } module.exports = {...DOMException, install: installOverride };