Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Feature Request: Increase C/C++ examples involving Properties. #51

Open
kphillisjr opened this issue Dec 14, 2016 · 1 comment
Open

Comments

@kphillisjr
Copy link

I believe one of the samples needs an example on how to use the JsRT api ( functions available in ChakraCore.h ) to define object properties a little better. This involves a few common tasks that users might need when handling Scripts...

  • Define a Property as Constant from C/C++
  • Define a C/C++ Getter and Setter for an Object/Property.
  • Define Typed Arrays for use within ChakraCore using C/C++?
  • Define Typed Variables using C/C++ for use within ChakraCore? ( This is an ongoing proposal for ECMAScript base- see https://github.com/nikomatsakis/typed-objects-explainer)
@liminzhu
Copy link
Member

liminzhu commented Jan 1, 2017

Good suggestion @kphillisjr . I believe [1] to [3] are fairly easy to do. I'm not familiar with the typed variable proposal though and the runtime doesn't understand types.

I'll add to them to the list of common tasks I want to demonstrate through a sample or a wiki article (apology for not getting any cycles so far to complete them). If there's anything you want to learn how to do right now, definitely let me know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants