Skip to content

feat: add getter/setter and inheritance support#46

Merged
WhiteKiwi merged 3 commits into
toss:v2.xfrom
RoundTable02:feat/support-getter-and-setter
Mar 12, 2026
Merged

feat: add getter/setter and inheritance support#46
WhiteKiwi merged 3 commits into
toss:v2.xfrom
RoundTable02:feat/support-getter-and-setter

Conversation

@RoundTable02

Copy link
Copy Markdown
Contributor

Overview

issue: #45

  • Support decorators on getter and setter methods using descriptor-based approach
  • Support inherited decorated methods/getters/setters through prototype chain traversal
  • Add comprehensive tests for getter/setter and inheritance scenarios

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

RoundTable02 and others added 2 commits November 23, 2025 23:20
  - Support decorators on getter and setter methods using descriptor-based approach
  - Support inherited decorated methods/getters/setters through prototype chain traversal
  - Add comprehensive tests for getter/setter and inheritance scenarios
@WhiteKiwi

WhiteKiwi commented Feb 25, 2026

Copy link
Copy Markdown
Member

If both getter and setter exist, decorators may not work as expected.
We may want to consider throwing an error in this scenario.

@RoundTable02

Copy link
Copy Markdown
Contributor Author

@WhiteKiwi Good point 👍
I'll adjust the implementation to handle this scenario explicitly and push an update soon.
Thanks for the feedback!

@RoundTable02

Copy link
Copy Markdown
Contributor Author

Hi @WhiteKiwi,

Just a friendly ping on this PR.
I've pushed an update to handle the getter/setter case as discussed.

Would appreciate another look whenever you have time. Thanks!

@WhiteKiwi

Copy link
Copy Markdown
Member

Thank you for your contribution!
We'll be publishing this soon

@WhiteKiwi
WhiteKiwi merged commit acd1d2a into toss:v2.x Mar 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants