Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: C++/JS proxy arrays #500

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

alandefreitas
Copy link
Collaborator

This PR completes the proxy types for dom::Function, dom::Object, and dom::Array. This means all js::Value and dom::Value objects can be converted back and forth.

The only current limitation is duktape does not support iterating Proxy object keys with the "ownKeys" callback, which limits virtualized objects. In practice, this means more complex JS scripts might not work well with proxy objects that originally came from C++ dom::Value. Although this is fortunately not a problem we currently have, I already reached out to find a solution to this problem.

The next step is to adapt the logic for handlebars helpers to be able to return non-primitive types.

@alandefreitas alandefreitas merged commit 5230768 into cppalliance:develop Nov 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant