1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -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:
Liam Murphy 2022-07-15 04:42:54 +10:00 committed by GitHub
parent a34ed568e9
commit bc7cb61d1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
/**