mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -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 {
|
export class CompileError extends Error {
|
||||||
/** Creates a new `WebAssembly.CompileError` object. */
|
/** Creates a new `WebAssembly.CompileError` object. */
|
||||||
constructor();
|
constructor(message?: string, options?: ErrorOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,7 +72,7 @@ declare namespace WebAssembly {
|
||||||
*/
|
*/
|
||||||
export class LinkError extends Error {
|
export class LinkError extends Error {
|
||||||
/** Creates a new WebAssembly.LinkError object. */
|
/** Creates a new WebAssembly.LinkError object. */
|
||||||
constructor();
|
constructor(message?: string, options?: ErrorOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -132,7 +132,7 @@ declare namespace WebAssembly {
|
||||||
*/
|
*/
|
||||||
export class RuntimeError extends Error {
|
export class RuntimeError extends Error {
|
||||||
/** Creates a new `WebAssembly.RuntimeError` object. */
|
/** Creates a new `WebAssembly.RuntimeError` object. */
|
||||||
constructor();
|
constructor(message?: string, options?: ErrorOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue