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

feat: Add ObjectTemplate NamedProperty and IndexedProperty handlers #1064

Merged

Conversation

bakjos
Copy link
Contributor

@bakjos bakjos commented Aug 28, 2022

This PR adds support for property interceptors (named and indexed property interceptors). To avoid breaking the existing API I created some specific structures to force the return types: PropertyAttributeReturnValue, BooleanReturnValue, ArrayReturnValue, and wrappers for the PropertyCallbackInfo to allow different implementations of the Callbacks.

@CLAassistant
Copy link

CLAassistant commented Aug 28, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! This looks pretty good.

src/function.rs Outdated Show resolved Hide resolved
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @bakjos!

@bartlomieju bartlomieju merged commit cd51ea1 into denoland:main Oct 5, 2022
bartlomieju added a commit to bartlomieju/rusty_v8 that referenced this pull request Oct 6, 2022
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.

None yet

4 participants