From bc7cb61d1a1bc7e55968310b5eed3ec1d911ad18 Mon Sep 17 00:00:00 2001 From: Liam Murphy Date: Fri, 15 Jul 2022 04:42:54 +1000 Subject: [PATCH] fix(cli/dts): allow passing arguments to `WebAssembly` error constructors (#15149) These constructors have the same signature as all of JavaScript's other builtin errors. --- cli/dts/lib.deno.shared_globals.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index efd59ca2ee..fc40bb54ea 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -21,7 +21,7 @@ declare namespace WebAssembly { */ export class CompileError extends Error { /** Creates a new `WebAssembly.CompileError` object. */ - constructor(); + constructor(message?: string, options?: ErrorOptions); } /** @@ -72,7 +72,7 @@ declare namespace WebAssembly { */ export class LinkError extends Error { /** Creates a new WebAssembly.LinkError object. */ - constructor(); + constructor(message?: string, options?: ErrorOptions); } /** @@ -132,7 +132,7 @@ declare namespace WebAssembly { */ export class RuntimeError extends Error { /** Creates a new `WebAssembly.RuntimeError` object. */ - constructor(); + constructor(message?: string, options?: ErrorOptions); } /**