Skip to content

Add globalThis and structuredClone globals - #206

Merged
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:feat/globals-core
Jul 13, 2026
Merged

Add globalThis and structuredClone globals#206
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:feat/globals-core

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Expose Node.js v24 globalThis and structuredClone on js.Node
  • Document that global is legacy in favor of globalThis
  • Type-files-only / accessors on Node.hx for this core slice only (no Buffer/atob/btoa)

Test plan

  • haxe build.hxml with Haxe 4.3.x
  • Confirm js.Node.globalThis / js.Node.structuredClone type-check in a small snippet

Made with Cursor

Expose Node 24 globalThis and structuredClone on js.Node, and note that global is legacy in favor of globalThis.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit dac4321 into HaxeFoundation:master Jul 13, 2026
@kevinresol
kevinresol deleted the feat/globals-core branch July 15, 2026 01:02
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