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] - Remove Literal::Undefined #2518

Closed
wants to merge 1 commit into from

Conversation

veera-sivarajan
Copy link
Contributor

This Pull Request fixes/closes #2512 .

Removes Literal::Undefined so that undefined is treated as an identifier name. Ran the parser's idempotency fuzzer and ensured the bug doesn't reproduce.

@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #2518 (25f7c32) into main (3d5deba) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2518   +/-   ##
=======================================
  Coverage   51.58%   51.59%           
=======================================
  Files         356      355    -1     
  Lines       35666    35632   -34     
=======================================
- Hits        18397    18383   -14     
+ Misses      17269    17249   -20     
Impacted Files Coverage Δ
boa_ast/src/expression/literal/mod.rs 72.41% <ø> (+2.41%) ⬆️
boa_engine/src/bytecompiler/expression/mod.rs 51.91% <ø> (+0.28%) ⬆️
boa_ast/src/position.rs 51.72% <0.00%> (-41.38%) ⬇️
boa_ast/src/punctuator.rs 44.14% <0.00%> (-0.91%) ⬇️
boa_ast/src/visitor.rs 10.58% <0.00%> (-0.59%) ⬇️
boa_examples/src/bin/symbol_visitor.rs 0.00% <0.00%> (ø)
boa_examples/src/bin/commuter_visitor.rs 0.00% <0.00%> (ø)
boa_wasm/src/lib.rs
boa_examples/src/bin/classes.rs
boa_examples/src/bin/jsmap.rs
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jedel1043 jedel1043 added ast Issue surrounding the abstract syntax tree bug Something isn't working labels Jan 6, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone Jan 6, 2023
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 for the contribution!

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!!

@raskad
Copy link
Member

raskad commented Jan 7, 2023

bors r+

bors bot pushed a commit that referenced this pull request Jan 7, 2023
<!---
Thank you for contributing to Boa! Please fill out the template below, and remove or add any
information as you feel necessary.
--->

This Pull Request fixes/closes #2512 .

Removes `Literal::Undefined` so that `undefined` is treated as an identifier name. Ran the parser's idempotency fuzzer and ensured the bug doesn't reproduce.
@bors
Copy link

bors bot commented Jan 7, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Remove Literal::Undefined [Merged by Bors] - Remove Literal::Undefined Jan 7, 2023
@bors bors bot closed this Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Issue surrounding the abstract syntax tree bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undefined is inconsistently treated as literal and identifier
4 participants