cginternals / cginternals/cppexpose

Support array properties in Duktape backend

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
decision required
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.