Skip to content

Wire async_hooks and process IPC/module typing - #235

Merged
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:chore/cross-wiring-async-hooks-ipc
Jul 14, 2026
Merged

Wire async_hooks and process IPC/module typing#235
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:chore/cross-wiring-async-hooks-ipc

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • A4: Type EventEmitterAsyncResource.asyncResource as AsyncResource, and Channel.bindStore/unbindStore store args as AsyncLocalStorage.
  • A5: Introduce ChildProcessSendHandle / ChildProcessChannel and wire Process channel, send, and message accordingly (net.Socket / net.Server / dgram.Socket).
  • Add js.node.module.SourceMap and refine Module.findSourceMap / register / registerHooks / source-maps support options (hook callbacks remain Function; transferList left partial).

Test plan

  • haxe -js dummy -cp src --macro ImportAll.run("src") --no-output with Haxe 4.0.5
  • Spot-check against Node 24 docs for process.send / module.SourceMap / diagnostics_channel store APIs

Made with Cursor

Type EventEmitterAsyncResource and Channel stores against AsyncResource/AsyncLocalStorage, add ChildProcess sendHandle/channel typedefs for Process IPC, and refine Module SourceMap/register/hooks surfaces.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit 0ac995b into HaxeFoundation:master Jul 14, 2026
10 checks passed
@kevinresol
kevinresol deleted the chore/cross-wiring-async-hooks-ipc branch July 15, 2026 01:01
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