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

Property accessors (ChakraCore) #68

Merged

Conversation

jasongin
Copy link
Member

This is the ChakraCore implementation of property accessors that was already done for V8.

Note all the test case updates as well as node_jsvmapi.h and node_jsvmapi.cc are just copied from the V8 branch. (The latter is not currently compiled, but I assume we want to keep it around and in sync to someday enable building with either V8 or CC out of the same branch.) The main work in this PR is in node_jsrtapi.cc.

 - Add support for property descriptors including accessor callbacks
 - Add a data pointer for function and accessor callbacks
 - Add API for defining a property using a property descriptor
 - Update the constructor API to use property descriptors
boingoing

This comment was marked as off-topic.

@boingoing
Copy link

The latter is not currently compiled, but I assume we want to keep it around and in sync to someday enable building with either V8 or CC out of the same branch

I think this is a good idea and probably a goal at least for the chakracore branch. There are probably some good candidates for abstracting the two implementations to remove duplication but that is a different effort.

@jasongin jasongin merged commit 27b3fc7 into nodejs:api-prototype-chakracore-8.x Feb 1, 2017
@jasongin jasongin deleted the accessors-cc branch February 1, 2017 18:29
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