cginternals / cginternals/cppexpose
Support array properties in Duktape backend
- Dominant language
- C
- Stars
- 28
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
It should be possible to create a `Property>("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
Contributor guide
No contributing guide indexed for this repository
Research direction
Trace how the typed-library identifies std::array and how the Duktape backend exposes array properties, starting with Property>("myArray", ...). Done means std::vector is recognized as an array type and myObj.myArray[x] works from JavaScript.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100