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 setting properties inside with blocks #2847

Closed
wants to merge 1 commit into from

Conversation

jedel1043
Copy link
Member

This preserves the semantics of the abstract operation Set on with blocks; setting non-writable properties on non-strict mode just silently fails.

@jedel1043 jedel1043 added execution Issues or PRs related to code execution Internal Category for changelog labels Apr 19, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone Apr 19, 2023
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 94,591 94,591 0
Passed 71,670 71,671 +1
Ignored 17,686 17,686 0
Failed 5,235 5,234 -1
Panics 0 0 0
Conformance 75.77% 75.77% +0.00%
Fixed tests (1):
test/built-ins/String/S15.5.5.1_A4_T1.js (previously Failed)

@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #2847 (66fab9c) into main (c87cf7c) will decrease coverage by 0.03%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##             main    #2847      +/-   ##
==========================================
- Coverage   51.38%   51.36%   -0.03%     
==========================================
  Files         417      417              
  Lines       41328    41356      +28     
==========================================
+ Hits        21238    21244       +6     
- Misses      20090    20112      +22     
Impacted Files Coverage Δ
boa_engine/src/environments/runtime.rs 69.73% <0.00%> (ø)
boa_engine/src/vm/opcode/define/mod.rs 88.67% <100.00%> (+0.67%) ⬆️
boa_engine/src/vm/opcode/set/name.rs 68.29% <100.00%> (+3.42%) ⬆️

... and 6 files with indirect coverage changes

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

@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.

Good catch!

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!

@Razican
Copy link
Member

Razican commented Apr 20, 2023

bors r+

bors bot pushed a commit that referenced this pull request Apr 20, 2023
This preserves the semantics of the abstract operation `Set` on `with` blocks; setting non-writable properties on non-strict mode just silently fails.
@bors
Copy link

bors bot commented Apr 20, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Fix setting properties inside with blocks [Merged by Bors] - Fix setting properties inside with blocks Apr 20, 2023
@bors bors bot closed this Apr 20, 2023
@bors bors bot deleted the fix-with-non-writable branch April 20, 2023 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execution Issues or PRs related to code execution Internal Category for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants