diff --git a/lib/constructs/attribute.js b/lib/constructs/attribute.js index 174df9a1..5f1f8e67 100644 --- a/lib/constructs/attribute.js +++ b/lib/constructs/attribute.js @@ -29,7 +29,7 @@ class Attribute { let brandCheck = ` if (!exports.is(esValue)) { - throw new TypeError("Illegal invocation"); + throw new TypeError("'$KEYWORD$ ${this.idl.name}' called on an object that is not a valid instance of ${this.interface.name}."); } `; let getterBody = `return utils.tryWrapperForImpl(esValue[implSymbol]["${this.idl.name}"]);`; @@ -78,11 +78,13 @@ class Attribute { addMethod(this.idl.name, [], ` ${promiseHandlingBefore} const esValue = this !== null && this !== undefined ? this : globalObject; - ${brandCheck} + ${brandCheck.replace("$KEYWORD$", "get")} ${getterBody} ${promiseHandlingAfter} `, "get", { configurable }); + brandCheck = brandCheck.replace("$KEYWORD$", "set"); + if (!this.idl.readonly) { if (async) { throw new Error(`Illegal promise-typed attribute "${this.idl.name}" in interface "${this.interface.idl.name}"`); @@ -159,7 +161,7 @@ class Attribute { addMethod("toString", [], ` const esValue = this; if (!exports.is(esValue)) { - throw new TypeError("Illegal invocation"); + throw new TypeError("'toString' called on an object that is not a valid instance of ${this.interface.name}."); } ${getterBody} diff --git a/lib/constructs/iterable.js b/lib/constructs/iterable.js index 049bba8c..eaac7308 100644 --- a/lib/constructs/iterable.js +++ b/lib/constructs/iterable.js @@ -20,8 +20,8 @@ class Iterable { generateFunction(key, kind) { this.interface.addMethod(this.interface.defaultWhence, key, [], ` - if (!this || !exports.is(this)) { - throw new TypeError("Illegal invocation"); + if (!exports.is(this)) { + throw new TypeError("'${key}' called on an object that is not a valid instance of ${this.interface.name}."); } return exports.createDefaultIterator(this, "${kind}"); `); @@ -37,8 +37,8 @@ class Iterable { this.generateFunction("entries", "key+value"); this.interface.addProperty(whence, Symbol.iterator, `${this.interface.name}.prototype.entries`); this.interface.addMethod(whence, "forEach", ["callback"], ` - if (!this || !exports.is(this)) { - throw new TypeError("Illegal invocation"); + if (!exports.is(this)) { + throw new TypeError("'forEach' called on an object that is not a valid instance of ${this.interface.name}."); } if (arguments.length < 1) { throw new TypeError("Failed to execute 'forEach' on '${this.name}': 1 argument required, " + diff --git a/lib/constructs/operation.js b/lib/constructs/operation.js index f0b0956d..4e5c7e18 100644 --- a/lib/constructs/operation.js +++ b/lib/constructs/operation.js @@ -107,7 +107,7 @@ class Operation { str += ` const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError("Illegal invocation"); + throw new TypeError("'${this.name}' called on an object that is not a valid instance of ${this.interface.name}."); } `; } diff --git a/test/__snapshots__/test.js.snap b/test/__snapshots__/test.js.snap index 8e007d4c..6e468a63 100644 --- a/test/__snapshots__/test.js.snap +++ b/test/__snapshots__/test.js.snap @@ -267,7 +267,7 @@ exports.install = (globalObject, globalNames) => { bs(source) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'bs' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -295,7 +295,7 @@ exports.install = (globalObject, globalNames) => { ab(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'ab' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -319,7 +319,7 @@ exports.install = (globalObject, globalNames) => { abv(abv) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'abv' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -346,7 +346,7 @@ exports.install = (globalObject, globalNames) => { u8a(u8) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'u8a' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -370,7 +370,7 @@ exports.install = (globalObject, globalNames) => { abUnion(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'abUnion' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -397,7 +397,7 @@ exports.install = (globalObject, globalNames) => { u8aUnion(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'u8aUnion' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -555,7 +555,7 @@ exports.install = (globalObject, globalNames) => { method() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'method' called on an object that is not a valid instance of CEReactions.\\"); } CEReactions.preSteps(globalObject); @@ -570,7 +570,7 @@ exports.install = (globalObject, globalNames) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseOperation' called on an object that is not a valid instance of CEReactions.\\"); } CEReactions.preSteps(globalObject); @@ -588,7 +588,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of CEReactions.\\"); } CEReactions.preSteps(globalObject); @@ -603,7 +603,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of CEReactions.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -623,7 +623,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get promiseAttribute' called on an object that is not a valid instance of CEReactions.\\" + ); } CEReactions.preSteps(globalObject); @@ -1033,7 +1035,9 @@ exports.install = (globalObject, globalNames) => { createDocumentType(qualifiedName, publicId, systemId) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'createDocumentType' called on an object that is not a valid instance of DOMImplementation.\\" + ); } if (arguments.length < 3) { @@ -1071,7 +1075,7 @@ exports.install = (globalObject, globalNames) => { createDocument(namespace, qualifiedName) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'createDocument' called on an object that is not a valid instance of DOMImplementation.\\"); } if (arguments.length < 2) { @@ -1120,7 +1124,9 @@ exports.install = (globalObject, globalNames) => { createHTMLDocument() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation.\\" + ); } const args = []; { @@ -1138,7 +1144,7 @@ exports.install = (globalObject, globalNames) => { hasFeature() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'hasFeature' called on an object that is not a valid instance of DOMImplementation.\\"); } return esValue[implSymbol].hasFeature(); @@ -1308,7 +1314,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get x' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"x\\"]; @@ -1318,7 +1324,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set x' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -1332,7 +1338,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get y' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"y\\"]; @@ -1342,7 +1348,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set y' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -1356,7 +1362,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get width' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"width\\"]; @@ -1366,7 +1372,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set width' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -1380,7 +1386,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get height' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"height\\"]; @@ -1390,7 +1396,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set height' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -1618,7 +1624,7 @@ exports.install = (globalObject, globalNames) => { op() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of DictionaryConvert.\\"); } const args = []; { @@ -1754,7 +1760,7 @@ exports.install = (globalObject, globalNames) => { op(destination) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of Enum.\\"); } if (arguments.length < 1) { @@ -1775,7 +1781,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of Enum.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"attr\\"]); @@ -1785,7 +1791,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of Enum.\\"); } V = \`\${V}\`; @@ -1952,7 +1958,7 @@ exports.install = (globalObject, globalNames) => { addEventListener(type, callback) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'addEventListener' called on an object that is not a valid instance of EventTarget.\\"); } if (arguments.length < 2) { @@ -2058,7 +2064,7 @@ exports._internalSetup = (wrapper, globalObject) => { op() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol].op(); @@ -2066,7 +2072,7 @@ exports._internalSetup = (wrapper, globalObject) => { unforgeableOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'unforgeableOp' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol].unforgeableOp(); @@ -2075,7 +2081,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -2084,7 +2090,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -2097,7 +2103,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unforgeableAttr' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"unforgeableAttr\\"]; @@ -2106,7 +2112,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unforgeableAttr' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -2119,7 +2125,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -2128,7 +2134,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set length' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"unsigned long\\"](V, { @@ -2441,7 +2447,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get lenientSetter' called on an object that is not a valid instance of LegacyLenientAttributes.\\" + ); } return esValue[implSymbol][\\"lenientSetter\\"]; @@ -2451,7 +2459,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'set lenientSetter' called on an object that is not a valid instance of LegacyLenientAttributes.\\" + ); } } @@ -2600,7 +2610,7 @@ exports._internalSetup = (wrapper, globalObject) => { assign(url) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'assign' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } if (arguments.length < 1) { @@ -2624,7 +2634,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get href' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -2633,7 +2643,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set href' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } V = conversions[\\"USVString\\"](V, { @@ -2645,7 +2655,7 @@ exports._internalSetup = (wrapper, globalObject) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -2654,7 +2664,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get origin' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"origin\\"]; @@ -2663,7 +2673,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get protocol' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"protocol\\"]; @@ -2672,7 +2682,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set protocol' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } V = conversions[\\"USVString\\"](V, { @@ -2810,7 +2820,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get a' called on an object that is not a valid instance of LegacyUnforgeableMap.\\"); } return esValue[implSymbol][\\"a\\"]; @@ -3157,7 +3167,7 @@ exports.install = (globalObject, globalNames) => { mixedInOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'mixedInOp' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol].mixedInOp(); @@ -3166,7 +3176,7 @@ exports.install = (globalObject, globalNames) => { ifaceMixinOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'ifaceMixinOp' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol].ifaceMixinOp(); @@ -3176,7 +3186,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get mixedInAttr' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol][\\"mixedInAttr\\"]; @@ -3186,7 +3196,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set mixedInAttr' called on an object that is not a valid instance of MixedIn.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -3200,7 +3210,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get ifaceMixinAttr' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol][\\"ifaceMixinAttr\\"]; @@ -3210,7 +3220,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set ifaceMixinAttr' called on an object that is not a valid instance of MixedIn.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -3444,7 +3454,7 @@ exports.install = (globalObject, globalNames) => { compatible(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'compatible' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -3514,7 +3524,7 @@ exports.install = (globalObject, globalNames) => { incompatible1(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible1' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -3551,7 +3561,7 @@ exports.install = (globalObject, globalNames) => { incompatible2(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible2' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -3594,7 +3604,7 @@ exports.install = (globalObject, globalNames) => { incompatible3(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible3' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -3804,7 +3814,9 @@ exports._internalSetup = (wrapper, globalObject) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'unforgeablePromiseOperation' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol].unforgeablePromiseOperation()); @@ -3817,7 +3829,9 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get unforgeablePromiseAttribute' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"unforgeablePromiseAttribute\\"]); @@ -3880,7 +3894,7 @@ exports.install = (globalObject, globalNames) => { voidPromiseConsumer(p) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'voidPromiseConsumer' called on an object that is not a valid instance of PromiseTypes.\\"); } if (arguments.length < 1) { @@ -3902,7 +3916,7 @@ exports.install = (globalObject, globalNames) => { promiseConsumer(p) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseConsumer' called on an object that is not a valid instance of PromiseTypes.\\"); } if (arguments.length < 1) { @@ -3925,7 +3939,7 @@ exports.install = (globalObject, globalNames) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseOperation' called on an object that is not a valid instance of PromiseTypes.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol].promiseOperation()); @@ -3939,7 +3953,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get promiseAttribute' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"promiseAttribute\\"]); @@ -4090,7 +4106,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedBoolean' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol].hasAttributeNS(null, \\"reflectedboolean\\"); @@ -4100,7 +4116,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedBoolean' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"boolean\\"](V, { @@ -4118,7 +4134,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedDOMString' called on an object that is not a valid instance of Reflect.\\"); } const value = esValue[implSymbol].getAttributeNS(null, \\"reflecteddomstring\\"); @@ -4129,7 +4145,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedDOMString' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -4143,7 +4159,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedLong' called on an object that is not a valid instance of Reflect.\\"); } const value = parseInt(esValue[implSymbol].getAttributeNS(null, \\"reflectedlong\\")); @@ -4154,7 +4170,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedLong' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"long\\"](V, { @@ -4168,7 +4184,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedUnsignedLong' called on an object that is not a valid instance of Reflect.\\"); } const value = parseInt(esValue[implSymbol].getAttributeNS(null, \\"reflectedunsignedlong\\")); @@ -4179,7 +4195,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedUnsignedLong' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"unsigned long\\"](V, { @@ -4193,7 +4209,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedUSVStringURL' called on an object that is not a valid instance of Reflect.\\"); } const value = esValue[implSymbol].getAttributeNS(null, \\"reflectedusvstringurl\\"); @@ -4208,7 +4224,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedUSVStringURL' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"USVString\\"](V, { @@ -4222,7 +4238,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectionTest' called on an object that is not a valid instance of Reflect.\\"); } const value = esValue[implSymbol].getAttributeNS(null, \\"reflection\\"); @@ -4233,7 +4249,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectionTest' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -4247,7 +4263,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get withUnderscore' called on an object that is not a valid instance of Reflect.\\"); } const value = esValue[implSymbol].getAttributeNS(null, \\"with-underscore\\"); @@ -4258,7 +4274,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set withUnderscore' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -4390,7 +4406,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get replaceable' called on an object that is not a valid instance of Replaceable.\\"); } return esValue[implSymbol][\\"replaceable\\"]; @@ -4400,7 +4416,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set replaceable' called on an object that is not a valid instance of Replaceable.\\"); } Object.defineProperty(esValue, \\"replaceable\\", { @@ -4560,7 +4576,7 @@ exports.install = (globalObject, globalNames) => { recordConsumer(rec) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'recordConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -4605,7 +4621,7 @@ exports.install = (globalObject, globalNames) => { recordConsumer2(rec) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'recordConsumer2' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -4650,7 +4666,7 @@ exports.install = (globalObject, globalNames) => { sequenceConsumer(seq) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sequenceConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -4687,7 +4703,7 @@ exports.install = (globalObject, globalNames) => { sequenceConsumer2(seq) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sequenceConsumer2' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -4722,7 +4738,7 @@ exports.install = (globalObject, globalNames) => { frozenArrayConsumer(arr) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'frozenArrayConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -4876,7 +4892,7 @@ exports.install = (globalObject, globalNames) => { def() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'def' called on an object that is not a valid instance of Static.\\"); } return esValue[implSymbol].def(); @@ -4886,7 +4902,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get abc' called on an object that is not a valid instance of Static.\\"); } return esValue[implSymbol][\\"abc\\"]; @@ -4896,7 +4912,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set abc' called on an object that is not a valid instance of Static.\\"); } V = conversions[\\"DOMString\\"](V, { context: \\"Failed to set the 'abc' property on 'Static': The provided value\\" }); @@ -5043,7 +5059,7 @@ exports.install = (globalObject, globalNames) => { key(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'key' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -5063,7 +5079,7 @@ exports.install = (globalObject, globalNames) => { getItem(key) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'getItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -5083,7 +5099,7 @@ exports.install = (globalObject, globalNames) => { setItem(key, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'setItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 2) { @@ -5108,7 +5124,7 @@ exports.install = (globalObject, globalNames) => { removeItem(key) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'removeItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -5130,7 +5146,7 @@ exports.install = (globalObject, globalNames) => { clear() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'clear' called on an object that is not a valid instance of Storage.\\"); } return esValue[implSymbol].clear(); @@ -5140,7 +5156,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of Storage.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -5431,7 +5447,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of StringifierAttribute.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -5440,7 +5456,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of StringifierAttribute.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -5564,7 +5580,9 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'toString' called on an object that is not a valid instance of StringifierDefaultOperation.\\" + ); } return esValue[implSymbol].toString(); @@ -5687,7 +5705,9 @@ exports.install = (globalObject, globalNames) => { operation() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'operation' called on an object that is not a valid instance of StringifierNamedOperation.\\" + ); } return esValue[implSymbol].operation(); @@ -5696,7 +5716,9 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'toString' called on an object that is not a valid instance of StringifierNamedOperation.\\" + ); } return esValue[implSymbol].operation(); @@ -5818,7 +5840,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of StringifierOperation.\\"); } return esValue[implSymbol].toString(); @@ -5941,7 +5963,9 @@ exports.install = (globalObject, globalNames) => { numOrStrConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -5972,7 +5996,9 @@ exports.install = (globalObject, globalNames) => { numOrEnumConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrEnumConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6006,7 +6032,9 @@ exports.install = (globalObject, globalNames) => { numOrStrOrNullConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrOrNullConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6043,7 +6071,9 @@ exports.install = (globalObject, globalNames) => { numOrStrOrURLOrNullConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrOrURLOrNullConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6082,7 +6112,9 @@ exports.install = (globalObject, globalNames) => { urlMapInnerConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'urlMapInnerConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6129,7 +6161,7 @@ exports.install = (globalObject, globalNames) => { urlMapConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'urlMapConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } if (arguments.length < 1) { @@ -6180,7 +6212,9 @@ exports.install = (globalObject, globalNames) => { bufferSourceOrURLConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'bufferSourceOrURLConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6211,7 +6245,9 @@ exports.install = (globalObject, globalNames) => { arrayBufferViewOrURLMapConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'arrayBufferViewOrURLMapConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6278,7 +6314,9 @@ exports.install = (globalObject, globalNames) => { arrayBufferViewDupConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'arrayBufferViewDupConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -6307,7 +6345,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get buf' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"buf\\"]); @@ -6317,7 +6355,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set buf' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } if (utils.isArrayBuffer(V)) { @@ -6338,7 +6376,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get time' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } return esValue[implSymbol][\\"time\\"]; @@ -6348,7 +6386,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set time' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } V = conversions[\\"unsigned long long\\"](V, { @@ -6501,7 +6539,7 @@ exports.install = (globalObject, globalNames) => { toJSON() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toJSON' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol].toJSON(); @@ -6511,7 +6549,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get href' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -6521,7 +6559,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set href' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'href' property on 'URL': The provided value\\" }); @@ -6532,7 +6570,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -6542,7 +6580,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get origin' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"origin\\"]; @@ -6552,7 +6590,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get protocol' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"protocol\\"]; @@ -6562,7 +6600,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set protocol' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -6576,7 +6614,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get username' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"username\\"]; @@ -6586,7 +6624,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set username' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -6600,7 +6638,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get password' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"password\\"]; @@ -6610,7 +6648,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set password' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -6624,7 +6662,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get host' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"host\\"]; @@ -6634,7 +6672,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set host' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'host' property on 'URL': The provided value\\" }); @@ -6646,7 +6684,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get hostname' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"hostname\\"]; @@ -6656,7 +6694,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set hostname' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -6670,7 +6708,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get port' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"port\\"]; @@ -6680,7 +6718,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set port' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'port' property on 'URL': The provided value\\" }); @@ -6692,7 +6730,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get pathname' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"pathname\\"]; @@ -6702,7 +6740,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set pathname' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -6716,7 +6754,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get search' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"search\\"]; @@ -6726,7 +6764,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set search' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'search' property on 'URL': The provided value\\" }); @@ -6738,7 +6776,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get searchParams' called on an object that is not a valid instance of URL.\\"); } return utils.getSameObject(this, \\"searchParams\\", () => { @@ -6750,7 +6788,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get hash' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"hash\\"]; @@ -6760,7 +6798,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set hash' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'hash' property on 'URL': The provided value\\" }); @@ -7000,7 +7038,7 @@ exports.install = (globalObject, globalNames) => { item(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'item' called on an object that is not a valid instance of URLList.\\"); } if (arguments.length < 1) { @@ -7023,7 +7061,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of URLList.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -7439,7 +7477,7 @@ exports.install = (globalObject, globalNames) => { append(name, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'append' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 2) { @@ -7470,7 +7508,7 @@ exports.install = (globalObject, globalNames) => { delete(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'delete' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -7494,7 +7532,7 @@ exports.install = (globalObject, globalNames) => { get(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -7518,7 +7556,7 @@ exports.install = (globalObject, globalNames) => { getAll(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'getAll' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -7542,7 +7580,7 @@ exports.install = (globalObject, globalNames) => { has(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'has' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -7566,7 +7604,7 @@ exports.install = (globalObject, globalNames) => { set(name, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 2) { @@ -7597,7 +7635,7 @@ exports.install = (globalObject, globalNames) => { sort() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sort' called on an object that is not a valid instance of URLSearchParams.\\"); } return esValue[implSymbol].sort(); @@ -7606,36 +7644,36 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of URLSearchParams.\\"); } return esValue[implSymbol].toString(); } keys() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'keys' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"key\\"); } values() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'values' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"value\\"); } entries() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'entries' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"key+value\\"); } forEach(callback) { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'forEach' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { throw new TypeError(\\"Failed to execute 'forEach' on 'iterable': 1 argument required, \\" + \\"but only 0 present.\\"); @@ -7787,7 +7825,7 @@ exports.install = (globalObject, globalNames) => { item(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'item' called on an object that is not a valid instance of URLSearchParamsCollection.\\"); } if (arguments.length < 1) { @@ -7811,7 +7849,9 @@ exports.install = (globalObject, globalNames) => { namedItem(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'namedItem' called on an object that is not a valid instance of URLSearchParamsCollection.\\" + ); } if (arguments.length < 1) { @@ -7836,7 +7876,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get length' called on an object that is not a valid instance of URLSearchParamsCollection.\\" + ); } return esValue[implSymbol][\\"length\\"]; @@ -8489,7 +8531,7 @@ exports.install = (globalObject, globalNames) => { operation(sequence) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'operation' called on an object that is not a valid instance of UnderscoredProperties.\\"); } if (arguments.length < 1) { @@ -8527,7 +8569,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get attribute' called on an object that is not a valid instance of UnderscoredProperties.\\" + ); } return esValue[implSymbol][\\"attribute\\"]; @@ -8537,7 +8581,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'set attribute' called on an object that is not a valid instance of UnderscoredProperties.\\" + ); } V = conversions[\\"byte\\"](V, { @@ -8688,7 +8734,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unscopableTest' called on an object that is not a valid instance of Unscopable.\\"); } return esValue[implSymbol][\\"unscopableTest\\"]; @@ -8698,7 +8744,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unscopableTest' called on an object that is not a valid instance of Unscopable.\\"); } V = conversions[\\"boolean\\"](V, { @@ -8712,7 +8758,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unscopableMixin' called on an object that is not a valid instance of Unscopable.\\"); } return esValue[implSymbol][\\"unscopableMixin\\"]; @@ -8722,7 +8768,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unscopableMixin' called on an object that is not a valid instance of Unscopable.\\"); } V = conversions[\\"boolean\\"](V, { @@ -8853,7 +8899,7 @@ exports.install = (globalObject, globalNames) => { simple1() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'simple1' called on an object that is not a valid instance of Variadic.\\"); } const args = []; for (let i = 0; i < arguments.length; i++) { @@ -8869,7 +8915,7 @@ exports.install = (globalObject, globalNames) => { simple2(first) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'simple2' called on an object that is not a valid instance of Variadic.\\"); } if (arguments.length < 1) { @@ -8896,7 +8942,7 @@ exports.install = (globalObject, globalNames) => { overloaded1() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'overloaded1' called on an object that is not a valid instance of Variadic.\\"); } const args = []; switch (arguments.length) { @@ -8929,7 +8975,7 @@ exports.install = (globalObject, globalNames) => { overloaded2(first) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'overloaded2' called on an object that is not a valid instance of Variadic.\\"); } if (arguments.length < 1) { @@ -9318,7 +9364,7 @@ exports.install = (globalObject, globalNames) => { bs(source) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'bs' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9346,7 +9392,7 @@ exports.install = (globalObject, globalNames) => { ab(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'ab' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9370,7 +9416,7 @@ exports.install = (globalObject, globalNames) => { abv(abv) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'abv' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9397,7 +9443,7 @@ exports.install = (globalObject, globalNames) => { u8a(u8) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'u8a' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9421,7 +9467,7 @@ exports.install = (globalObject, globalNames) => { abUnion(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'abUnion' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9448,7 +9494,7 @@ exports.install = (globalObject, globalNames) => { u8aUnion(ab) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'u8aUnion' called on an object that is not a valid instance of BufferSourceTypes.\\"); } if (arguments.length < 1) { @@ -9605,7 +9651,7 @@ exports.install = (globalObject, globalNames) => { method() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'method' called on an object that is not a valid instance of CEReactions.\\"); } return esValue[implSymbol].method(); @@ -9615,7 +9661,7 @@ exports.install = (globalObject, globalNames) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseOperation' called on an object that is not a valid instance of CEReactions.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol].promiseOperation()); @@ -9628,7 +9674,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of CEReactions.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -9638,7 +9684,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of CEReactions.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -9653,7 +9699,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get promiseAttribute' called on an object that is not a valid instance of CEReactions.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"promiseAttribute\\"]); @@ -10043,7 +10091,9 @@ exports.install = (globalObject, globalNames) => { createDocumentType(qualifiedName, publicId, systemId) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'createDocumentType' called on an object that is not a valid instance of DOMImplementation.\\" + ); } if (arguments.length < 3) { @@ -10081,7 +10131,7 @@ exports.install = (globalObject, globalNames) => { createDocument(namespace, qualifiedName) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'createDocument' called on an object that is not a valid instance of DOMImplementation.\\"); } if (arguments.length < 2) { @@ -10130,7 +10180,9 @@ exports.install = (globalObject, globalNames) => { createHTMLDocument() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation.\\" + ); } const args = []; { @@ -10148,7 +10200,7 @@ exports.install = (globalObject, globalNames) => { hasFeature() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'hasFeature' called on an object that is not a valid instance of DOMImplementation.\\"); } return esValue[implSymbol].hasFeature(); @@ -10318,7 +10370,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get x' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"x\\"]; @@ -10328,7 +10380,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set x' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -10342,7 +10394,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get y' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"y\\"]; @@ -10352,7 +10404,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set y' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -10366,7 +10418,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get width' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"width\\"]; @@ -10376,7 +10428,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set width' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -10390,7 +10442,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get height' called on an object that is not a valid instance of DOMRect.\\"); } return esValue[implSymbol][\\"height\\"]; @@ -10400,7 +10452,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set height' called on an object that is not a valid instance of DOMRect.\\"); } V = conversions[\\"unrestricted double\\"](V, { @@ -10628,7 +10680,7 @@ exports.install = (globalObject, globalNames) => { op() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of DictionaryConvert.\\"); } const args = []; { @@ -10764,7 +10816,7 @@ exports.install = (globalObject, globalNames) => { op(destination) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of Enum.\\"); } if (arguments.length < 1) { @@ -10785,7 +10837,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of Enum.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"attr\\"]); @@ -10795,7 +10847,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of Enum.\\"); } V = \`\${V}\`; @@ -10962,7 +11014,7 @@ exports.install = (globalObject, globalNames) => { addEventListener(type, callback) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'addEventListener' called on an object that is not a valid instance of EventTarget.\\"); } if (arguments.length < 2) { @@ -11068,7 +11120,7 @@ exports._internalSetup = (wrapper, globalObject) => { op() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'op' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol].op(); @@ -11076,7 +11128,7 @@ exports._internalSetup = (wrapper, globalObject) => { unforgeableOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'unforgeableOp' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol].unforgeableOp(); @@ -11085,7 +11137,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -11094,7 +11146,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set attr' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -11107,7 +11159,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unforgeableAttr' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"unforgeableAttr\\"]; @@ -11116,7 +11168,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unforgeableAttr' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -11129,7 +11181,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of Global.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -11138,7 +11190,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set length' called on an object that is not a valid instance of Global.\\"); } V = conversions[\\"unsigned long\\"](V, { @@ -11450,7 +11502,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get lenientSetter' called on an object that is not a valid instance of LegacyLenientAttributes.\\" + ); } return esValue[implSymbol][\\"lenientSetter\\"]; @@ -11460,7 +11514,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'set lenientSetter' called on an object that is not a valid instance of LegacyLenientAttributes.\\" + ); } } @@ -11609,7 +11665,7 @@ exports._internalSetup = (wrapper, globalObject) => { assign(url) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'assign' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } if (arguments.length < 1) { @@ -11633,7 +11689,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get href' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -11642,7 +11698,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set href' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } V = conversions[\\"USVString\\"](V, { @@ -11654,7 +11710,7 @@ exports._internalSetup = (wrapper, globalObject) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -11663,7 +11719,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get origin' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"origin\\"]; @@ -11672,7 +11728,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get protocol' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } return esValue[implSymbol][\\"protocol\\"]; @@ -11681,7 +11737,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set protocol' called on an object that is not a valid instance of LegacyUnforgeable.\\"); } V = conversions[\\"USVString\\"](V, { @@ -11819,7 +11875,7 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get a' called on an object that is not a valid instance of LegacyUnforgeableMap.\\"); } return esValue[implSymbol][\\"a\\"]; @@ -12166,7 +12222,7 @@ exports.install = (globalObject, globalNames) => { mixedInOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'mixedInOp' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol].mixedInOp(); @@ -12175,7 +12231,7 @@ exports.install = (globalObject, globalNames) => { ifaceMixinOp() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'ifaceMixinOp' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol].ifaceMixinOp(); @@ -12185,7 +12241,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get mixedInAttr' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol][\\"mixedInAttr\\"]; @@ -12195,7 +12251,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set mixedInAttr' called on an object that is not a valid instance of MixedIn.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -12209,7 +12265,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get ifaceMixinAttr' called on an object that is not a valid instance of MixedIn.\\"); } return esValue[implSymbol][\\"ifaceMixinAttr\\"]; @@ -12219,7 +12275,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set ifaceMixinAttr' called on an object that is not a valid instance of MixedIn.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -12453,7 +12509,7 @@ exports.install = (globalObject, globalNames) => { compatible(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'compatible' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -12523,7 +12579,7 @@ exports.install = (globalObject, globalNames) => { incompatible1(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible1' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -12560,7 +12616,7 @@ exports.install = (globalObject, globalNames) => { incompatible2(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible2' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -12603,7 +12659,7 @@ exports.install = (globalObject, globalNames) => { incompatible3(arg1) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'incompatible3' called on an object that is not a valid instance of Overloads.\\"); } if (arguments.length < 1) { @@ -12813,7 +12869,9 @@ exports._internalSetup = (wrapper, globalObject) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'unforgeablePromiseOperation' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol].unforgeablePromiseOperation()); @@ -12826,7 +12884,9 @@ exports._internalSetup = (wrapper, globalObject) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get unforgeablePromiseAttribute' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"unforgeablePromiseAttribute\\"]); @@ -12889,7 +12949,7 @@ exports.install = (globalObject, globalNames) => { voidPromiseConsumer(p) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'voidPromiseConsumer' called on an object that is not a valid instance of PromiseTypes.\\"); } if (arguments.length < 1) { @@ -12911,7 +12971,7 @@ exports.install = (globalObject, globalNames) => { promiseConsumer(p) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseConsumer' called on an object that is not a valid instance of PromiseTypes.\\"); } if (arguments.length < 1) { @@ -12934,7 +12994,7 @@ exports.install = (globalObject, globalNames) => { try { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'promiseOperation' called on an object that is not a valid instance of PromiseTypes.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol].promiseOperation()); @@ -12948,7 +13008,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get promiseAttribute' called on an object that is not a valid instance of PromiseTypes.\\" + ); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"promiseAttribute\\"]); @@ -13098,7 +13160,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedBoolean' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectedBoolean\\"]; @@ -13108,7 +13170,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedBoolean' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"boolean\\"](V, { @@ -13122,7 +13184,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedDOMString' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectedDOMString\\"]; @@ -13132,7 +13194,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedDOMString' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -13146,7 +13208,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedLong' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectedLong\\"]; @@ -13156,7 +13218,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedLong' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"long\\"](V, { @@ -13170,7 +13232,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedUnsignedLong' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectedUnsignedLong\\"]; @@ -13180,7 +13242,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedUnsignedLong' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"unsigned long\\"](V, { @@ -13194,7 +13256,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectedUSVStringURL' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectedUSVStringURL\\"]; @@ -13204,7 +13266,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectedUSVStringURL' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"USVString\\"](V, { @@ -13218,7 +13280,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get reflectionTest' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"reflectionTest\\"]; @@ -13228,7 +13290,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set reflectionTest' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -13242,7 +13304,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get withUnderscore' called on an object that is not a valid instance of Reflect.\\"); } return esValue[implSymbol][\\"withUnderscore\\"]; @@ -13252,7 +13314,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set withUnderscore' called on an object that is not a valid instance of Reflect.\\"); } V = conversions[\\"DOMString\\"](V, { @@ -13384,7 +13446,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get replaceable' called on an object that is not a valid instance of Replaceable.\\"); } return esValue[implSymbol][\\"replaceable\\"]; @@ -13394,7 +13456,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set replaceable' called on an object that is not a valid instance of Replaceable.\\"); } Object.defineProperty(esValue, \\"replaceable\\", { @@ -13554,7 +13616,7 @@ exports.install = (globalObject, globalNames) => { recordConsumer(rec) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'recordConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -13599,7 +13661,7 @@ exports.install = (globalObject, globalNames) => { recordConsumer2(rec) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'recordConsumer2' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -13644,7 +13706,7 @@ exports.install = (globalObject, globalNames) => { sequenceConsumer(seq) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sequenceConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -13681,7 +13743,7 @@ exports.install = (globalObject, globalNames) => { sequenceConsumer2(seq) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sequenceConsumer2' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -13716,7 +13778,7 @@ exports.install = (globalObject, globalNames) => { frozenArrayConsumer(arr) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'frozenArrayConsumer' called on an object that is not a valid instance of SeqAndRec.\\"); } if (arguments.length < 1) { @@ -13870,7 +13932,7 @@ exports.install = (globalObject, globalNames) => { def() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'def' called on an object that is not a valid instance of Static.\\"); } return esValue[implSymbol].def(); @@ -13880,7 +13942,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get abc' called on an object that is not a valid instance of Static.\\"); } return esValue[implSymbol][\\"abc\\"]; @@ -13890,7 +13952,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set abc' called on an object that is not a valid instance of Static.\\"); } V = conversions[\\"DOMString\\"](V, { context: \\"Failed to set the 'abc' property on 'Static': The provided value\\" }); @@ -14037,7 +14099,7 @@ exports.install = (globalObject, globalNames) => { key(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'key' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -14057,7 +14119,7 @@ exports.install = (globalObject, globalNames) => { getItem(key) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'getItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -14077,7 +14139,7 @@ exports.install = (globalObject, globalNames) => { setItem(key, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'setItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 2) { @@ -14102,7 +14164,7 @@ exports.install = (globalObject, globalNames) => { removeItem(key) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'removeItem' called on an object that is not a valid instance of Storage.\\"); } if (arguments.length < 1) { @@ -14124,7 +14186,7 @@ exports.install = (globalObject, globalNames) => { clear() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'clear' called on an object that is not a valid instance of Storage.\\"); } return esValue[implSymbol].clear(); @@ -14134,7 +14196,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of Storage.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -14425,7 +14487,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get attr' called on an object that is not a valid instance of StringifierAttribute.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -14434,7 +14496,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of StringifierAttribute.\\"); } return esValue[implSymbol][\\"attr\\"]; @@ -14558,7 +14620,9 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'toString' called on an object that is not a valid instance of StringifierDefaultOperation.\\" + ); } return esValue[implSymbol].toString(); @@ -14681,7 +14745,9 @@ exports.install = (globalObject, globalNames) => { operation() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'operation' called on an object that is not a valid instance of StringifierNamedOperation.\\" + ); } return esValue[implSymbol].operation(); @@ -14690,7 +14756,9 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'toString' called on an object that is not a valid instance of StringifierNamedOperation.\\" + ); } return esValue[implSymbol].operation(); @@ -14812,7 +14880,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of StringifierOperation.\\"); } return esValue[implSymbol].toString(); @@ -14935,7 +15003,9 @@ exports.install = (globalObject, globalNames) => { numOrStrConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -14966,7 +15036,9 @@ exports.install = (globalObject, globalNames) => { numOrEnumConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrEnumConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15000,7 +15072,9 @@ exports.install = (globalObject, globalNames) => { numOrStrOrNullConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrOrNullConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15037,7 +15111,9 @@ exports.install = (globalObject, globalNames) => { numOrStrOrURLOrNullConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'numOrStrOrURLOrNullConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15076,7 +15152,9 @@ exports.install = (globalObject, globalNames) => { urlMapInnerConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'urlMapInnerConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15123,7 +15201,7 @@ exports.install = (globalObject, globalNames) => { urlMapConsumer(a) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'urlMapConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } if (arguments.length < 1) { @@ -15174,7 +15252,9 @@ exports.install = (globalObject, globalNames) => { bufferSourceOrURLConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'bufferSourceOrURLConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15205,7 +15285,9 @@ exports.install = (globalObject, globalNames) => { arrayBufferViewOrURLMapConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'arrayBufferViewOrURLMapConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15272,7 +15354,9 @@ exports.install = (globalObject, globalNames) => { arrayBufferViewDupConsumer(b) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'arrayBufferViewDupConsumer' called on an object that is not a valid instance of TypedefsAndUnions.\\" + ); } if (arguments.length < 1) { @@ -15301,7 +15385,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get buf' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } return utils.tryWrapperForImpl(esValue[implSymbol][\\"buf\\"]); @@ -15311,7 +15395,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set buf' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } if (utils.isArrayBuffer(V)) { @@ -15332,7 +15416,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get time' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } return esValue[implSymbol][\\"time\\"]; @@ -15342,7 +15426,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set time' called on an object that is not a valid instance of TypedefsAndUnions.\\"); } V = conversions[\\"unsigned long long\\"](V, { @@ -15495,7 +15579,7 @@ exports.install = (globalObject, globalNames) => { toJSON() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toJSON' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol].toJSON(); @@ -15505,7 +15589,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get href' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -15515,7 +15599,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set href' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'href' property on 'URL': The provided value\\" }); @@ -15526,7 +15610,7 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"href\\"]; @@ -15536,7 +15620,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get origin' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"origin\\"]; @@ -15546,7 +15630,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get protocol' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"protocol\\"]; @@ -15556,7 +15640,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set protocol' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -15570,7 +15654,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get username' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"username\\"]; @@ -15580,7 +15664,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set username' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -15594,7 +15678,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get password' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"password\\"]; @@ -15604,7 +15688,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set password' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -15618,7 +15702,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get host' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"host\\"]; @@ -15628,7 +15712,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set host' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'host' property on 'URL': The provided value\\" }); @@ -15640,7 +15724,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get hostname' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"hostname\\"]; @@ -15650,7 +15734,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set hostname' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -15664,7 +15748,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get port' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"port\\"]; @@ -15674,7 +15758,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set port' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'port' property on 'URL': The provided value\\" }); @@ -15686,7 +15770,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get pathname' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"pathname\\"]; @@ -15696,7 +15780,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set pathname' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { @@ -15710,7 +15794,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get search' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"search\\"]; @@ -15720,7 +15804,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set search' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'search' property on 'URL': The provided value\\" }); @@ -15732,7 +15816,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get searchParams' called on an object that is not a valid instance of URL.\\"); } return utils.getSameObject(this, \\"searchParams\\", () => { @@ -15744,7 +15828,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get hash' called on an object that is not a valid instance of URL.\\"); } return esValue[implSymbol][\\"hash\\"]; @@ -15754,7 +15838,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set hash' called on an object that is not a valid instance of URL.\\"); } V = conversions[\\"USVString\\"](V, { context: \\"Failed to set the 'hash' property on 'URL': The provided value\\" }); @@ -15994,7 +16078,7 @@ exports.install = (globalObject, globalNames) => { item(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'item' called on an object that is not a valid instance of URLList.\\"); } if (arguments.length < 1) { @@ -16017,7 +16101,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get length' called on an object that is not a valid instance of URLList.\\"); } return esValue[implSymbol][\\"length\\"]; @@ -16433,7 +16517,7 @@ exports.install = (globalObject, globalNames) => { append(name, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'append' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 2) { @@ -16464,7 +16548,7 @@ exports.install = (globalObject, globalNames) => { delete(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'delete' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -16488,7 +16572,7 @@ exports.install = (globalObject, globalNames) => { get(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -16512,7 +16596,7 @@ exports.install = (globalObject, globalNames) => { getAll(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'getAll' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -16536,7 +16620,7 @@ exports.install = (globalObject, globalNames) => { has(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'has' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { @@ -16560,7 +16644,7 @@ exports.install = (globalObject, globalNames) => { set(name, value) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 2) { @@ -16591,7 +16675,7 @@ exports.install = (globalObject, globalNames) => { sort() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'sort' called on an object that is not a valid instance of URLSearchParams.\\"); } return esValue[implSymbol].sort(); @@ -16600,36 +16684,36 @@ exports.install = (globalObject, globalNames) => { toString() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'toString' called on an object that is not a valid instance of URLSearchParams.\\"); } return esValue[implSymbol].toString(); } keys() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'keys' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"key\\"); } values() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'values' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"value\\"); } entries() { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'entries' called on an object that is not a valid instance of URLSearchParams.\\"); } return exports.createDefaultIterator(this, \\"key+value\\"); } forEach(callback) { - if (!this || !exports.is(this)) { - throw new TypeError(\\"Illegal invocation\\"); + if (!exports.is(this)) { + throw new TypeError(\\"'forEach' called on an object that is not a valid instance of URLSearchParams.\\"); } if (arguments.length < 1) { throw new TypeError(\\"Failed to execute 'forEach' on 'iterable': 1 argument required, \\" + \\"but only 0 present.\\"); @@ -16781,7 +16865,7 @@ exports.install = (globalObject, globalNames) => { item(index) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'item' called on an object that is not a valid instance of URLSearchParamsCollection.\\"); } if (arguments.length < 1) { @@ -16805,7 +16889,9 @@ exports.install = (globalObject, globalNames) => { namedItem(name) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'namedItem' called on an object that is not a valid instance of URLSearchParamsCollection.\\" + ); } if (arguments.length < 1) { @@ -16830,7 +16916,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get length' called on an object that is not a valid instance of URLSearchParamsCollection.\\" + ); } return esValue[implSymbol][\\"length\\"]; @@ -17483,7 +17571,7 @@ exports.install = (globalObject, globalNames) => { operation(sequence) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'operation' called on an object that is not a valid instance of UnderscoredProperties.\\"); } if (arguments.length < 1) { @@ -17521,7 +17609,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'get attribute' called on an object that is not a valid instance of UnderscoredProperties.\\" + ); } return esValue[implSymbol][\\"attribute\\"]; @@ -17531,7 +17621,9 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError( + \\"'set attribute' called on an object that is not a valid instance of UnderscoredProperties.\\" + ); } V = conversions[\\"byte\\"](V, { @@ -17682,7 +17774,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unscopableTest' called on an object that is not a valid instance of Unscopable.\\"); } return esValue[implSymbol][\\"unscopableTest\\"]; @@ -17692,7 +17784,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unscopableTest' called on an object that is not a valid instance of Unscopable.\\"); } V = conversions[\\"boolean\\"](V, { @@ -17706,7 +17798,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'get unscopableMixin' called on an object that is not a valid instance of Unscopable.\\"); } return esValue[implSymbol][\\"unscopableMixin\\"]; @@ -17716,7 +17808,7 @@ exports.install = (globalObject, globalNames) => { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'set unscopableMixin' called on an object that is not a valid instance of Unscopable.\\"); } V = conversions[\\"boolean\\"](V, { @@ -17847,7 +17939,7 @@ exports.install = (globalObject, globalNames) => { simple1() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'simple1' called on an object that is not a valid instance of Variadic.\\"); } const args = []; for (let i = 0; i < arguments.length; i++) { @@ -17863,7 +17955,7 @@ exports.install = (globalObject, globalNames) => { simple2(first) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'simple2' called on an object that is not a valid instance of Variadic.\\"); } if (arguments.length < 1) { @@ -17890,7 +17982,7 @@ exports.install = (globalObject, globalNames) => { overloaded1() { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'overloaded1' called on an object that is not a valid instance of Variadic.\\"); } const args = []; switch (arguments.length) { @@ -17923,7 +18015,7 @@ exports.install = (globalObject, globalNames) => { overloaded2(first) { const esValue = this !== null && this !== undefined ? this : globalObject; if (!exports.is(esValue)) { - throw new TypeError(\\"Illegal invocation\\"); + throw new TypeError(\\"'overloaded2' called on an object that is not a valid instance of Variadic.\\"); } if (arguments.length < 1) {