cppexpose icon indicating copy to clipboard operation
cppexpose copied to clipboard

Support array properties in Duktape backend

Open j-o opened this issue 7 years ago • 0 comments

It should be possible to create a Property<std::vector<int>>("myArray", ...) and access its elements from JS as myObj.myArray[x].

Currently, I see two issues that must be addressed:

  • [ ] the typed-library does not recognize std::vector as an array type, only std::array
  • [ ] the Duktape backend does not expose arrays as such

j-o avatar Aug 07 '17 13:08 j-o