1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 12:20:04 +02:00

update packages to latest version

This commit is contained in:
s2
2022-08-20 18:51:33 +02:00
parent 09663a35a5
commit 806ebf9a57
4513 changed files with 366205 additions and 92512 deletions

View File

@@ -3,13 +3,13 @@ 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) {
function installOverride(globalObject, globalNames) {
if (typeof globalObject.Error !== "function") {
throw new Error("Internal error: Error constructor is not present on the given global object.");
}
DOMException.install(globalObject);
DOMException.install(globalObject, globalNames);
Object.setPrototypeOf(globalObject.DOMException.prototype, globalObject.Error.prototype);
}
module.exports = {...DOMException, install: installOverride };
module.exports = { ...DOMException, install: installOverride };