summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Murphy <liampm32@gmail.com>2022-07-15 04:42:54 +1000
committerGitHub <noreply@github.com>2022-07-14 14:42:54 -0400
commitbc7cb61d1a1bc7e55968310b5eed3ec1d911ad18 (patch)
tree1b667d621b15ab60e585d0b60e7e570b8dfb0c5c
parenta34ed568e98d2f10f699f707841cab96847d3ce9 (diff)
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.
-rw-r--r--cli/dts/lib.deno.shared_globals.d.ts6
1 files 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 efd59ca2e..fc40bb54e 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);
}
/**