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] - Fix yield expression to end on line terminator #2232

Closed
wants to merge 2 commits into from

Conversation

raskad
Copy link
Member

@raskad raskad commented Aug 13, 2022

This Pull Request changes the following:

  • Fix yield expression to end on line terminator

@raskad raskad added bug Something isn't working parser Issues surrounding the parser labels Aug 13, 2022
@raskad raskad added this to the v0.16.0 milestone Aug 13, 2022
@github-actions
Copy link

Test262 conformance changes

VM implementation

Test result main count PR count difference
Total 91,573 91,573 0
Passed 59,820 59,838 +18
Ignored 14,606 14,606 0
Failed 17,147 17,129 -18
Panics 0 0 0
Conformance 65.32% 65.34% +0.02%
Fixed tests (18):
test/language/statements/class/definition/methods-gen-yield-newline.js [strict mode] (previously Failed)
test/language/statements/class/definition/methods-gen-yield-newline.js (previously Failed)
test/language/statements/class/definition/methods-gen-yield-star-after-newline.js [strict mode] (previously Failed)
test/language/statements/class/definition/methods-gen-yield-star-after-newline.js (previously Failed)
test/language/statements/generators/yield-newline.js [strict mode] (previously Failed)
test/language/statements/generators/yield-newline.js (previously Failed)
test/language/statements/generators/yield-star-after-newline.js [strict mode] (previously Failed)
test/language/statements/generators/yield-star-after-newline.js (previously Failed)
test/language/expressions/object/method-definition/yield-newline.js [strict mode] (previously Failed)
test/language/expressions/object/method-definition/yield-newline.js (previously Failed)
test/language/expressions/object/method-definition/yield-star-after-newline.js [strict mode] (previously Failed)
test/language/expressions/object/method-definition/yield-star-after-newline.js (previously Failed)
test/language/expressions/async-generator/early-errors-expression-yield-star-after-newline.js [strict mode] (previously Failed)
test/language/expressions/async-generator/early-errors-expression-yield-star-after-newline.js (previously Failed)
test/language/expressions/generators/yield-newline.js [strict mode] (previously Failed)
test/language/expressions/generators/yield-newline.js (previously Failed)
test/language/expressions/generators/yield-star-after-newline.js [strict mode] (previously Failed)
test/language/expressions/generators/yield-star-after-newline.js (previously Failed)

@codecov
Copy link

codecov bot commented Aug 13, 2022

Codecov Report

Merging #2232 (d875b26) into main (a8bf59d) will decrease coverage by 0.01%.
The diff coverage is 61.53%.

@@            Coverage Diff             @@
##             main    #2232      +/-   ##
==========================================
- Coverage   41.99%   41.98%   -0.02%     
==========================================
  Files         231      231              
  Lines       21530    21536       +6     
==========================================
  Hits         9042     9042              
- Misses      12488    12494       +6     
Impacted Files Coverage Δ
boa_engine/src/syntax/parser/cursor/mod.rs 39.56% <33.33%> (-1.10%) ⬇️
...ine/src/syntax/parser/expression/assignment/mod.rs 52.47% <66.66%> (-1.07%) ⬇️
...engine/src/syntax/parser/expression/primary/mod.rs 36.78% <66.66%> (+0.10%) ⬆️
...e/src/syntax/parser/expression/assignment/yield.rs 24.07% <75.00%> (+2.92%) ⬆️
boa_engine/src/syntax/ast/node/template/mod.rs 51.72% <0.00%> (-3.45%) ⬇️
...a_engine/src/syntax/ast/node/statement_list/mod.rs 78.12% <0.00%> (-3.13%) ⬇️

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

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.

Looks good :) just a couple of comments that could improve the code.

boa_engine/src/syntax/parser/cursor/mod.rs Show resolved Hide resolved
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

Looks good to me! :)

@HalidOdat
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 14, 2022
This Pull Request changes the following:

- Fix `yield` expression to end on line terminator
@bors
Copy link

bors bot commented Aug 14, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Fix yield expression to end on line terminator [Merged by Bors] - Fix yield expression to end on line terminator Aug 14, 2022
@bors bors bot closed this Aug 14, 2022
@bors bors bot deleted the fix-yield-line-terminator branch August 14, 2022 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Issues surrounding the parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants