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

break = 1; gives Uncaught "TypeError" instead of Uncaught "SyntaxError" #741

Closed
jasonwilliams opened this issue Sep 29, 2020 · 1 comment · Fixed by #748
Closed

break = 1; gives Uncaught "TypeError" instead of Uncaught "SyntaxError" #741

jasonwilliams opened this issue Sep 29, 2020 · 1 comment · Fixed by #748
Assignees
Labels
bug Something isn't working E-Easy Easy good first issue Good for newcomers Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com

Comments

@jasonwilliams
Copy link
Member

jasonwilliams commented Sep 29, 2020

break = 1;

Uncaught "TypeError": "expected token 'identifier', got '=' in binding identifier at line 1, col 7"

The above should be:

Uncaught SyntaxError: "expected token 'identifier', got '=' in binding identifier at line 1, col 7"`

Taken from:
https://github.com/tc39/test262/blob/master/test/language/keywords/ident-ref-break.js

Contributing: https://github.com/boa-dev/boa/blob/master/CONTRIBUTING.md
Debugging: https://github.com/boa-dev/boa/blob/master/docs/debugging.md

@jasonwilliams jasonwilliams added bug Something isn't working good first issue Good for newcomers Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com E-Easy Easy labels Sep 29, 2020
@iamsaquib8
Copy link
Contributor

Can I take this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working E-Easy Easy good first issue Good for newcomers Hacktoberfest Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants