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] - Implement Object.prototype.__defineSetter__ #2109

Closed
wants to merge 1 commit into from

Conversation

wusyong
Copy link

@wusyong wusyong commented Jun 11, 2022

This Pull Request fixes part of #2067.

It adds the legacy Object.prototype.__defineSetter__ function.

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.

LGTM. Thank you for your contribution! :D

@jedel1043 jedel1043 requested review from raskad and Razican June 11, 2022 04:41
@jedel1043 jedel1043 added enhancement New feature or request builtins PRs and Issues related to builtins/intrinsics labels Jun 11, 2022
@jedel1043 jedel1043 added this to the v0.16.0 milestone Jun 11, 2022
@codecov
Copy link

codecov bot commented Jun 11, 2022

Codecov Report

Merging #2109 (6d6673c) into main (b7e84d4) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2109      +/-   ##
==========================================
- Coverage   43.65%   43.64%   -0.02%     
==========================================
  Files         217      217              
  Lines       19649    19656       +7     
==========================================
  Hits         8578     8578              
- Misses      11071    11078       +7     
Impacted Files Coverage Δ
boa_engine/src/builtins/object/mod.rs 62.60% <0.00%> (-1.97%) ⬇️

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 b7e84d4...6d6673c. Read the comment docs.

@jedel1043
Copy link
Member

VM implementation

Test result main count PR count difference
Total 90,499 90,499 0
Passed 56,394 56,416 +22
Ignored 23,580 23,580 0
Failed 10,525 10,503 -22
Panics 0 0 0
Conformance 62.31% 62.34% +0.02%
Fixed tests (22):
test/built-ins/Object/prototype/__defineSetter__/key-invalid.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/key-invalid.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/this-non-obj.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/this-non-obj.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-existing.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-existing.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-non-extensible.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-non-extensible.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-new.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-new.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/length.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/length.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/setter-non-callable.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/setter-non-callable.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/name.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/name.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/prop-desc.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/prop-desc.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-abrupt.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-abrupt.js (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-non-configurable.js [strict mode] (previously Failed)
test/built-ins/Object/prototype/__defineSetter__/define-non-configurable.js (previously Failed)

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.

Thank you! Looks great :)

@Razican
Copy link
Member

Razican commented Jun 11, 2022

bors r+

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

This Pull Request fixes part of #2067.

It adds the legacy `Object.prototype.__defineSetter__` function.
@bors
Copy link

bors bot commented Jun 11, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Implement Object.prototype.__defineSetter__ [Merged by Bors] - Implement Object.prototype.__defineSetter__ Jun 11, 2022
@bors bors bot closed this Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins PRs and Issues related to builtins/intrinsics enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants