-
-
Notifications
You must be signed in to change notification settings - Fork 402
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.__defineGetter__
#2108
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2108 +/- ##
==========================================
- Coverage 43.66% 43.65% -0.02%
==========================================
Files 217 217
Lines 19644 19649 +5
==========================================
Hits 8578 8578
- Misses 11066 11071 +5
Continue to review full report at Codecov.
|
VM implementation
Fixed tests (22):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution :)
I only have one small difference from the spec that should be fixed. Also we like to have the steps from the spec written as comments in the code (when it makes sense). For example:
// 1. Let O be ? ToObject(this value).
let obj = this.to_object(context)?;
It would be great if you could add those.
5ebb24c
to
7131ffc
Compare
7131ffc
to
432ee3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! All tests in the built-ins/Object/prototype/__defineGetter__
suite pass :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
bors r+ |
Pull request successfully merged into main. Build succeeded: |
Object.prototype.__defineGetter__
Object.prototype.__defineGetter__
Thank you for the review! 🙏 |
This Pull Request fixes part of #2067.
It introduces the legacy
Object.prototype.__defineGetter__
function.