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

[Merged by Bors] - Correct reference error message #1855

Closed
wants to merge 2 commits into from

Conversation

aaronmunsters
Copy link
Contributor

This Pull Request fixes/closes the incorrect message thrown for the following code:

"use strict";
foo = "bar";

Which would throw the following before the change (incorrect):
Uncaught "ReferenceError": "binding already exists: foo"

And would throw the following after the change (correct):
Uncaught "ReferenceError": "assignment to undeclared variable foo"

@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #1855 (9f4749a) into main (1d28514) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1855   +/-   ##
=======================================
  Coverage   55.27%   55.27%           
=======================================
  Files         200      200           
  Lines       17861    17860    -1     
=======================================
  Hits         9873     9873           
+ Misses       7988     7987    -1     
Impacted Files Coverage Δ
boa/src/vm/mod.rs 78.12% <0.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d28514...9f4749a. Read the comment docs.

Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!!

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@Razican
Copy link
Member

Razican commented Feb 21, 2022

bors r+

bors bot pushed a commit that referenced this pull request Feb 21, 2022
This Pull Request fixes/closes the incorrect message thrown for the following code:

```javascript
"use strict";
foo = "bar";
```

Which would throw the following before the change (incorrect):
`Uncaught "ReferenceError": "binding already exists: foo"`

And would throw the following after the change (correct):
`Uncaught "ReferenceError": "assignment to undeclared variable foo"`
@bors
Copy link

bors bot commented Feb 21, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Correct reference error message [Merged by Bors] - Correct reference error message Feb 21, 2022
@bors bors bot closed this Feb 21, 2022
@Razican Razican added this to the v0.14.0 milestone Feb 23, 2022
@Razican Razican added bug Something isn't working execution Issues or PRs related to code execution labels Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working execution Issues or PRs related to code execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants