Skip to content

Add Node.js inspector (+ inspector/promises) externs - #218

Merged
kevinresol merged 3 commits into
HaxeFoundation:masterfrom
kevinresol:feat/inspector
Jul 14, 2026
Merged

kevinresol merged 3 commits into
HaxeFoundation:masterfrom
kevinresol:feat/inspector

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add js.node.Inspector for the stable inspector module: open / close / url / waitForDebugger / console
  • Add js.node.inspector.Session (EventEmitter subclass) with typed session events where practical and callback-based post
  • Add pragmatic DevTools helpers: Network, NetworkResources, DomStorage (experimental Node flags), without exhaustive CDP schema typings
  • Add thin js.node.InspectorPromises + js.node.inspector.promises.Session for Promise-returning post

Test plan

  • haxe build.hxml (Haxe 5.0.0-preview.1) — passes (pre-existing Url/Domain warnings only)
  • Spot-check Session.connect / post against Node 24 inspector callback API
  • Spot-check inspector/promises Session post returns a Promise
  • Spot-check Network.requestWillBeSent param typedefs against Node docs examples

Made with Cursor

kevinresol and others added 3 commits July 13, 2026 23:56
Cover the stable module surface (open/close/url/waitForDebugger/console/Session)
plus pragmatic Network, NetworkResources, and DOMStorage helpers without exhaustive CDP typings.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align SessionEvent.DebuggerResumed with notification message handlers, document webSocket*/DomStorage as Node 24-only, and clarify Disposable open() / promises SessionEvent reuse.

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