cginternals / cginternals/cppexpose
Support array properties in Duktape backend
未关闭
decision required
- 主要语言
- C
- 星标
- 28
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
这个仓库没有索引到贡献指南
调研方向
追踪 typed-library 如何识别 std::array,以及 Duktape 后端如何公开数组属性,从 Property>("myArray", ...) 开始。当 std::vector 被识别为数组类型,并且 myObj.myArray[x] 可以从 JavaScript 使用时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100