diff --git a/README.md b/README.md index bd1d3c30..7b8c05ea 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ Creates a new instance of the wrapper class and corresponding implementation cla This is useful inside implementation class files, where it is easiest to only deal with impls, not wrappers. -#### `new(globalObject [ , newTarget ])` +#### `new(globalObject, newTarget)` Creates a new instance of the wrapper class and corresponding implementation class, but without invoking the implementation class constructor logic. Then returns the implementation class. diff --git a/lib/constructs/interface.js b/lib/constructs/interface.js index 5b3dcc72..4a511d9c 100644 --- a/lib/constructs/interface.js +++ b/lib/constructs/interface.js @@ -82,7 +82,7 @@ class LegacyFactoryFunction { // the return type, which is used by HTML's element legacy factory functions: str += ` const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, ${formatArgs(setupArgs)}); + const result = Impl.legacyFactoryFunction.call(thisArgument, ${formatArgs(setupArgs)}); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); `; @@ -1206,7 +1206,7 @@ class Interface { generateIface() { this.str += ` - function makeWrapper(globalObject, newTarget = undefined) { + function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error('Internal error: invalid global object'); } @@ -1292,7 +1292,7 @@ class Interface { return wrapper; }; - exports.new = (globalObject, newTarget = undefined) => { + exports.new = (globalObject, newTarget) => { ${this.isLegacyPlatformObj ? "let" : "const"} wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); diff --git a/test/__snapshots__/test.js.snap b/test/__snapshots__/test.js.snap index b3a35a62..ca29466a 100644 --- a/test/__snapshots__/test.js.snap +++ b/test/__snapshots__/test.js.snap @@ -76,7 +76,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'BufferSourceTypes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -125,7 +125,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -359,7 +359,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'CEReactions'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -419,7 +419,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -780,7 +780,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DOMImplementation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -829,7 +829,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -1017,7 +1017,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DOMRect'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -1066,7 +1066,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -1381,7 +1381,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DictionaryConvert'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -1430,7 +1430,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -1525,7 +1525,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Enum'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -1574,7 +1574,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -1731,7 +1731,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'EventTarget'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -1780,7 +1780,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -1886,7 +1886,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Global'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2034,7 +2034,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2120,7 +2120,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLAudioElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2169,7 +2169,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2226,7 +2226,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Audio\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Audio\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -2274,7 +2274,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLConstructor'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2323,7 +2323,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2394,7 +2394,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLImageElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2443,7 +2443,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2507,7 +2507,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Image\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Image\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -2555,7 +2555,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLOptionElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2604,7 +2604,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2688,7 +2688,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Option\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Option\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -2735,7 +2735,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyFactoryFunction'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -2784,7 +2784,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -2867,7 +2867,12 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"OverloadedLegacyFactoryFunction\\"); + const result = Impl.legacyFactoryFunction.call( + thisArgument, + globalObject, + args, + \\"OverloadedLegacyFactoryFunction\\" + ); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -2903,7 +2908,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"SimpleLegacyFactoryFunction\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"SimpleLegacyFactoryFunction\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -2950,7 +2955,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyLenientAttributes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -3001,7 +3006,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -3161,7 +3166,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyUnforgeable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -3308,7 +3313,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -3378,7 +3383,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyUnforgeableMap'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -3446,7 +3451,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -3693,7 +3698,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'MixedIn'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -3742,7 +3747,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -3967,7 +3972,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Overloads'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -4016,7 +4021,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -4396,7 +4401,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'PromiseTypes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -4481,7 +4486,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -4661,7 +4666,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Reflect'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -4710,7 +4715,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -4969,7 +4974,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Replaceable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -5018,7 +5023,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -5148,7 +5153,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'SeqAndRec'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -5197,7 +5202,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -5472,7 +5477,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Static'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -5521,7 +5526,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -5641,7 +5646,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Storage'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -5692,7 +5697,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -6040,7 +6045,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierAttribute'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -6089,7 +6094,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -6180,7 +6185,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierDefaultOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -6231,7 +6236,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -6311,7 +6316,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierNamedOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -6362,7 +6367,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -6452,7 +6457,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -6501,7 +6506,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -6583,7 +6588,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'TypedefsAndUnions'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -6632,7 +6637,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -7133,7 +7138,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URL'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -7182,7 +7187,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -7562,7 +7567,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLList'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -7613,7 +7618,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -7932,7 +7937,7 @@ exports.createDefaultIterator = (target, kind) => { return iterator; }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -7981,7 +7986,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -8364,7 +8369,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLSearchParamsCollection'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -8417,7 +8422,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -8739,7 +8744,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLSearchParamsCollection2'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -8794,7 +8799,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -9088,7 +9093,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'UnderscoredProperties'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -9137,7 +9142,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -9294,7 +9299,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Unscopable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -9343,7 +9348,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -9468,7 +9473,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Variadic'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -9517,7 +9522,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -9742,7 +9747,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'ZeroArgConstructor'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -9791,7 +9796,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -9913,7 +9918,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'BufferSourceTypes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -9962,7 +9967,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -10195,7 +10200,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'CEReactions'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -10255,7 +10260,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -10576,7 +10581,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DOMImplementation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -10625,7 +10630,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -10813,7 +10818,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DOMRect'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -10862,7 +10867,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -11177,7 +11182,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'DictionaryConvert'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -11226,7 +11231,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -11321,7 +11326,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Enum'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -11370,7 +11375,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -11527,7 +11532,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'EventTarget'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -11576,7 +11581,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -11682,7 +11687,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Global'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -11830,7 +11835,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -11915,7 +11920,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLAudioElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -11964,7 +11969,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12021,7 +12026,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Audio\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Audio\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -12068,7 +12073,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLConstructor'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -12117,7 +12122,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12187,7 +12192,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLImageElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -12236,7 +12241,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12300,7 +12305,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Image\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Image\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -12347,7 +12352,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'HTMLOptionElement'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -12396,7 +12401,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12480,7 +12485,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"Option\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"Option\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -12527,7 +12532,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyFactoryFunction'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -12576,7 +12581,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12659,7 +12664,12 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"OverloadedLegacyFactoryFunction\\"); + const result = Impl.legacyFactoryFunction.call( + thisArgument, + globalObject, + args, + \\"OverloadedLegacyFactoryFunction\\" + ); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -12695,7 +12705,7 @@ exports.install = (globalObject, globalNames) => { } const thisArgument = exports.new(globalObject, new.target); - const result = Impl.legacyFactoryFunction.call(thisArg, globalObject, args, \\"SimpleLegacyFactoryFunction\\"); + const result = Impl.legacyFactoryFunction.call(thisArgument, globalObject, args, \\"SimpleLegacyFactoryFunction\\"); return utils.tryWrapperForImpl(utils.isObject(result) ? result : thisArgument); } @@ -12742,7 +12752,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyLenientAttributes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -12793,7 +12803,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -12953,7 +12963,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyUnforgeable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -13100,7 +13110,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -13170,7 +13180,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'LegacyUnforgeableMap'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -13238,7 +13248,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -13485,7 +13495,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'MixedIn'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -13534,7 +13544,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -13759,7 +13769,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Overloads'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -13808,7 +13818,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -14188,7 +14198,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'PromiseTypes'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -14273,7 +14283,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -14452,7 +14462,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Reflect'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -14501,7 +14511,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -14746,7 +14756,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Replaceable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -14795,7 +14805,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -14925,7 +14935,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'SeqAndRec'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -14974,7 +14984,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -15249,7 +15259,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Static'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -15298,7 +15308,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -15418,7 +15428,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Storage'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -15469,7 +15479,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -15817,7 +15827,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierAttribute'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -15866,7 +15876,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -15957,7 +15967,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierDefaultOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -16008,7 +16018,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -16088,7 +16098,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierNamedOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -16139,7 +16149,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -16229,7 +16239,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'StringifierOperation'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -16278,7 +16288,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -16360,7 +16370,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'TypedefsAndUnions'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -16409,7 +16419,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -16910,7 +16920,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URL'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -16959,7 +16969,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -17339,7 +17349,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLList'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -17390,7 +17400,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -17709,7 +17719,7 @@ exports.createDefaultIterator = (target, kind) => { return iterator; }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -17758,7 +17768,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -18141,7 +18151,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLSearchParamsCollection'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -18194,7 +18204,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -18516,7 +18526,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'URLSearchParamsCollection2'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -18571,7 +18581,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { let wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -18865,7 +18875,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'UnderscoredProperties'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -18914,7 +18924,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -19071,7 +19081,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Unscopable'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -19120,7 +19130,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -19245,7 +19255,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'Variadic'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -19294,7 +19304,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject); @@ -19519,7 +19529,7 @@ exports.convert = (value, { context = \\"The provided value\\" } = {}) => { throw new TypeError(\`\${context} is not of type 'ZeroArgConstructor'.\`); }; -function makeWrapper(globalObject, newTarget = undefined) { +function makeWrapper(globalObject, newTarget) { if (globalObject[ctorRegistrySymbol] === undefined) { throw new Error(\\"Internal error: invalid global object\\"); } @@ -19568,7 +19578,7 @@ exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) return wrapper; }; -exports.new = (globalObject, newTarget = undefined) => { +exports.new = (globalObject, newTarget) => { const wrapper = makeWrapper(globalObject, newTarget); exports._internalSetup(wrapper, globalObject);