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

Wrong argument order when throwing DOMException #112

Closed
danielrentz opened this issue May 17, 2023 · 0 comments · Fixed by #113
Closed

Wrong argument order when throwing DOMException #112

danielrentz opened this issue May 17, 2023 · 0 comments · Fixed by #113

Comments

@danielrentz
Copy link
Contributor

The argument order of DOMException constructor is DOMException(message[, name]) but all exceptions will be created with DOMException(name, message), e.g. https://github.com/hustcc/jest-canvas-mock/blob/master/src/classes/CanvasRenderingContext2D.js#L190

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 a pull request may close this issue.

1 participant