Skip to content

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.

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.

@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