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

proper checking of JavaScript exceptions #9

Open
bmesuere opened this issue Aug 1, 2019 · 0 comments
Open

proper checking of JavaScript exceptions #9

bmesuere opened this issue Aug 1, 2019 · 0 comments
Labels
enhancement New feature or request migrated

Comments

@bmesuere
Copy link
Member

bmesuere commented Aug 1, 2019

The following way of raising an exception

throw "AssertionError: error description";

is considered the same as throwing the exception in the following way

throw { name: "AssertionError", message: "error description" };

where only the latter should be considered correct.

Original issue by @bmesuere on Mon Dec 19 2016 at 09:20.

@dodona-server dodona-server added enhancement New feature or request migrated labels Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request migrated
Projects
None yet
Development

No branches or pull requests

2 participants