Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli/dts): allow passing arguments to WebAssembly error constructors #15149

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

Liamolucko
Copy link
Contributor

These constructors have the same signature as all of JavaScript's other builtin errors.

…tors

These constructors have the same signature as all of JavaScript's other builtin errors.
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm good to merge this, but it looks like there are other possible constructor signatures as well. Would you be up for adding them? Edit: they were non-standard.

@@ -21,7 +21,7 @@ declare namespace WebAssembly {
*/
export class CompileError extends Error {
/** Creates a new `WebAssembly.CompileError` object. */
constructor();
constructor(message?: string, options?: ErrorOptions);
Copy link
Member

@dsherret dsherret Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't include those ones because they're non-standard; do you want to include then anyway?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right. I didn't notice.

cli/dts/lib.deno.shared_globals.d.ts Show resolved Hide resolved
cli/dts/lib.deno.shared_globals.d.ts Show resolved Hide resolved
@dsherret dsherret merged commit bc7cb61 into denoland:main Jul 14, 2022
@Liamolucko Liamolucko deleted the webassembly-error-constructors branch July 14, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants