Skip to content

Audit process/CLI/VM externs for Node 24 and Haxe 4 - #227

Merged
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:audit/process-cli-vm
Jul 14, 2026
Merged

Audit process/CLI/VM externs for Node 24 and Haxe 4#227
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:audit/process-cli-vm

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Align section-5 externs (child_process, cluster, readline/readline/promises, repl, vm, v8, domain) with Node.js 24 APIs and drop remaining Haxe 3 conditionals.
  • Add core affinity stubs for async_hooks, worker_threads, and wasi (preferring practical surface over totality).
  • Leave intentional Dynamic IPC/eval/structured-clone seams tagged with TODO(section-5) for follow-up typing.

Test plan

  • haxe -js dummy -cp src --macro 'ImportAll.run("src")' --macro '_internal.SuppressDeprecated.run()' --no-output under Haxe 4.0.5
  • Same ImportAll check under Haxe 5.0.0-preview.1
  • Spot-check new options (signal/serialization/windowsHide, cluster setupPrimary, readline line/getCursorPos, vm compileFunction, v8 heap/snapshot helpers) against Node 24 docs
  • Smoke-use AsyncLocalStorage, worker_threads.Worker, and Wasi constructors in a small sample if desired

Made with Cursor

Align child_process, cluster, readline, repl, vm, v8, and domain with Node 24 APIs, drop Haxe 3 conditionals, and add core async_hooks, worker_threads, and wasi stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit 0704320 into HaxeFoundation:master Jul 14, 2026
10 checks passed
@kevinresol
kevinresol deleted the audit/process-cli-vm 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