Skip to content

[Merged by Bors] - Implement Object.prototype.__defineSetter__ - #2109

Closed
wusyong wants to merge 1 commit into
boa-dev:mainfrom
wusyong:define-setter
Closed

wusyong wants to merge 1 commit into
boa-dev:mainfrom
wusyong:define-setter

Conversation

@wusyong

@wusyong wusyong commented Jun 11, 2022

Copy link
Copy Markdown

This Pull Request fixes part of #2067.

It adds the legacy Object.prototype.__defineSetter__ function.

@jedel1043 jedel1043 left a comment

Copy link
Copy Markdown
Member

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 Razican and raskad June 11, 2022 04:41
@jedel1043 jedel1043 added A-Enhancement New feature or request C-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

codecov Bot commented Jun 11, 2022 •

Copy link
Copy Markdown

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
Copy Markdown
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)

@Razican Razican left a comment

Copy link
Copy Markdown
Member

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

Razican commented Jun 11, 2022

Copy link
Copy Markdown
Member

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

bors Bot commented Jun 11, 2022

Copy link
Copy Markdown

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

A-Enhancement New feature or request C-Builtins PRs and Issues related to builtins/intrinsics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants