Skip to content

otp: run_js with results#653

Merged
jgonet merged 3 commits into
mainfrom
jgonet/push-xuymvutzlyqq
Jun 30, 2026
Merged

otp: run_js with results#653
jgonet merged 3 commits into
mainfrom
jgonet/push-xuymvutzlyqq

Conversation

@jgonet

@jgonet jgonet commented Jun 30, 2026

Copy link
Copy Markdown
Member

Allows to pass (serializable) args from VM to JS function. Now run_js accepts only functions.

Also simplified tests a bit, allowed JS to send to PIDs (prev: only registered processes), and made run_js sync.

Followups:

  • keep opaque handles to JS values.
  • allow creating them arbitrarily and allow adding cleanup functions.
  • change send() to accept either string | SerializedPid or objects (instead of current mix of strings and objects).

@jgonet jgonet changed the title otp: add tracked values otp: run_js with results Jun 30, 2026
@jgonet jgonet merged commit 5e946ce into main Jun 30, 2026
2 checks passed
@jgonet jgonet deleted the jgonet/push-xuymvutzlyqq branch June 30, 2026 21:26
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