Sha256: 0e3de897227883f0a4fc8b2adbc78ee79c2aaa25ebfbb0b7cc5aad944012c9f1
Contents?: true
Size: 600 Bytes
Versions: 20
Compression:
Stored size: 600 Bytes
Contents
"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 };
Version data entries
20 entries across 20 versions & 1 rubygems