mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
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.
This commit is contained in:
parent
a34ed568e9
commit
bc7cb61d1a
1 changed files with 3 additions and 3 deletions
6
cli/dts/lib.deno.shared_globals.d.ts
vendored
6
cli/dts/lib.deno.shared_globals.d.ts
vendored
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue