Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Caller is a transient object that exists only for calling Zig functions from JS. But jsValueToZig is more generally useful and can be used outside of an explicit JS call. The scope is a better place for these as it's generally referenced already by any code that would need to map values (i.e. a Callback).

Caller is a transient object that exists only for calling Zig functions from
JS. But jsValueToZig is more generally useful and can be used outside of an
explicit JS call. The scope is a better place for these as it's generally
referenced already by any code that would need to map values (i.e. a Callback).
Copy link
Contributor

@sjorsdonkers sjorsdonkers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karlseguin karlseguin merged commit 3ee17e0 into main May 21, 2025
9 checks passed
@karlseguin karlseguin deleted the move_jsValueToZig branch May 21, 2025 12:21
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 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