Skip to content

Conversation

@karlseguin
Copy link
Collaborator

@karlseguin karlseguin commented Apr 18, 2025

Add value setter, keys(), values(), entries() and forEach().

Like nodelist, forEach still doesn't support this arg (gotta think about how to do this).

I think these iterable methods are missing in a few places, so I added a generic Entries iterator and a generic Iterable.

jsruntime will now map a Zig tuple to a JS array.

Add value setter, keys(), values(), entries() and forEach().

Like nodelist, forEach still doesn't support `this` arg (gotta think about
how to do this).

I think these iterable methods are missing in a few places, so I added a
generic Entries iterator and a generic Iterable.

jsruntime will now map a Zig tuple to a JS array.
JsObject can now be used as a normal parameter. It'll receive the opaque value.
This is largely useful when a Zig function takes an argument which it needs
to pass back into a callback.

JsThis is now a thin wrapper around JsObject for functions that was the JsObject
of the receiver. This is for advanced usage where the Zig function wants to
manipulate the v8.Object that represents the zig value. postAttach is an example
of such usage.
@krichprollsch krichprollsch merged commit 1849f4c into main Apr 22, 2025
12 checks passed
@krichprollsch krichprollsch deleted the token_list_iterators branch April 22, 2025 07:03
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants