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:
6
node_modules/domexception/webidl2js-wrapper.js
generated
vendored
6
node_modules/domexception/webidl2js-wrapper.js
generated
vendored
@@ -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 };
|
||||
|
Reference in New Issue
Block a user