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] - Improve strictness of GeneratorState #2837

Closed
wants to merge 2 commits into from

Conversation

jedel1043
Copy link
Member

Just some small improvements that increase the strictness of our generator state handling.

Also rollbacks the implementation of GeneratorValidate because I forgot to remove it after I did modifications to #2821, and it doesn't make sense to have that if it isn't used by async functions.

@jedel1043 jedel1043 added vm Issues and PRs related to the Boa Virtual Machine. Internal Category for changelog labels Apr 17, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone Apr 17, 2023
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 94,591 94,591 0
Passed 71,630 71,630 0
Ignored 17,634 17,634 0
Failed 5,327 5,327 0
Panics 0 0 0
Conformance 75.73% 75.73% 0.00%

@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #2837 (74f0451) into main (4b72c06) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #2837   +/-   ##
=======================================
  Coverage   51.38%   51.38%           
=======================================
  Files         417      417           
  Lines       41330    41328    -2     
=======================================
  Hits        21238    21238           
+ Misses      20092    20090    -2     
Impacted Files Coverage Δ
boa_engine/src/builtins/generator/mod.rs 32.05% <0.00%> (-0.85%) ⬇️
boa_engine/src/object/builtins/jsgenerator.rs 0.00% <ø> (ø)
boa_engine/src/vm/code_block.rs 61.58% <0.00%> (ø)

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

@raskad raskad left a comment

Choose a reason for hiding this comment

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

Nice improvement

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 Apr 18, 2023
Just some small improvements that increase the strictness of our generator state handling.

Also rollbacks the implementation of `GeneratorValidate` because I forgot to remove it after I did modifications to #2821, and it doesn't make sense to have that if it isn't used by async functions.
@bors
Copy link

bors bot commented Apr 18, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Improve strictness of GeneratorState [Merged by Bors] - Improve strictness of GeneratorState Apr 18, 2023
@bors bors bot closed this Apr 18, 2023
@bors bors bot deleted the gen-improvements branch April 18, 2023 05:59
bors bot pushed a commit that referenced this pull request Apr 20, 2023
Depends on #2837.

This Pull Request changes the following:

- Fix the remaining `language/expressions/yield` tests.
- Align the sync generator execution more to the spec.

This breaks one async generator test. We can ignore that one as async generators are currently very broken. I will try to fix async generators next.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Category for changelog vm Issues and PRs related to the Boa Virtual Machine.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants