diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 1ac6c197..3e35cbdf 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -435,7 +435,8 @@ declare namespace WebAssembly { var CompileError: { prototype: CompileError; - new(): CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; }; interface Global { @@ -462,7 +463,8 @@ declare namespace WebAssembly { var LinkError: { prototype: LinkError; - new(): LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; }; interface Memory { @@ -491,7 +493,8 @@ declare namespace WebAssembly { var RuntimeError: { prototype: RuntimeError; - new(): RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; }; interface Table { diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 221d5901..1756caba 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -16555,7 +16555,8 @@ declare namespace WebAssembly { var CompileError: { prototype: CompileError; - new(): CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; }; interface Global { @@ -16582,7 +16583,8 @@ declare namespace WebAssembly { var LinkError: { prototype: LinkError; - new(): LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; }; interface Memory { @@ -16611,7 +16613,8 @@ declare namespace WebAssembly { var RuntimeError: { prototype: RuntimeError; - new(): RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; }; interface Table { diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 2236d650..633419af 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -5108,7 +5108,8 @@ declare namespace WebAssembly { var CompileError: { prototype: CompileError; - new(): CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; }; interface Global { @@ -5135,7 +5136,8 @@ declare namespace WebAssembly { var LinkError: { prototype: LinkError; - new(): LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; }; interface Memory { @@ -5164,7 +5166,8 @@ declare namespace WebAssembly { var RuntimeError: { prototype: RuntimeError; - new(): RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; }; interface Table { diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index c13bf511..0659591f 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -5137,7 +5137,8 @@ declare namespace WebAssembly { var CompileError: { prototype: CompileError; - new(): CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; }; interface Global { @@ -5164,7 +5165,8 @@ declare namespace WebAssembly { var LinkError: { prototype: LinkError; - new(): LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; }; interface Memory { @@ -5193,7 +5195,8 @@ declare namespace WebAssembly { var RuntimeError: { prototype: RuntimeError; - new(): RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; }; interface Table { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index c8c5f3ab..d014dc30 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -5351,7 +5351,8 @@ declare namespace WebAssembly { var CompileError: { prototype: CompileError; - new(): CompileError; + new(message?: string): CompileError; + (message?: string): CompileError; }; interface Global { @@ -5378,7 +5379,8 @@ declare namespace WebAssembly { var LinkError: { prototype: LinkError; - new(): LinkError; + new(message?: string): LinkError; + (message?: string): LinkError; }; interface Memory { @@ -5407,7 +5409,8 @@ declare namespace WebAssembly { var RuntimeError: { prototype: RuntimeError; - new(): RuntimeError; + new(message?: string): RuntimeError; + (message?: string): RuntimeError; }; interface Table { diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index aa8eef9a..d2482633 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -302,7 +302,13 @@ "CompileError": { "name": "CompileError", "extends": "Error", - "legacyNamespace": "WebAssembly" + "legacyNamespace": "WebAssembly", + "constructor": { + "overrideSignatures": [ + "new(message?: string): CompileError", + "(message?: string): CompileError" + ] + } }, "DeviceMotionEventAcceleration": { "noInterfaceObject": true @@ -859,7 +865,13 @@ "RuntimeError": { "name": "RuntimeError", "extends": "Error", - "legacyNamespace": "WebAssembly" + "legacyNamespace": "WebAssembly", + "constructor": { + "overrideSignatures": [ + "new(message?: string): RuntimeError", + "(message?: string): RuntimeError" + ] + } }, "SVGStyleElement": { "properties": { @@ -874,7 +886,13 @@ "LinkError": { "name": "LinkError", "extends": "Error", - "legacyNamespace": "WebAssembly" + "legacyNamespace": "WebAssembly", + "constructor": { + "overrideSignatures": [ + "new(message?: string): LinkError", + "(message?: string): LinkError" + ] + } }, "MediaRecorder": { "events": {