Registry Mirror
Skip to content

Conversation

@andrewtdiz

Copy link
Copy Markdown
Contributor

Closes #3082
Closes #3084
Closes #3085
Closes #3086

Summary

  • Preserve all Channel#runStores() callback arguments and add regression coverage for active and inactive channel paths.
  • Keep provided non-undefined bindStore() transforms so non-callable transforms report the deferred uncaught TypeError behavior instead of silently becoming identity transforms.
  • Reject symbol inputs for tracingChannel() while keeping plain channel(symbol) valid.
  • Rework TracingChannel#traceCallback() to honor callback position, preserve surrounding arguments, support negative positions, and keep active/inactive behavior aligned.
  • Route high-arity native closure calls through rest/arity dispatch so synthetic-arguments diagnostics closures receive their full argument array.

Why Batched

These issues share node:diagnostics_channel store/tracing plumbing and the same parity harness surface. Fixing them together avoids overlapping edits to channel stores, tracing channel validation, callback wrapping, and native closure argument dispatch.

Tests Added

  • diagnostics_channel/stores/run-stores-rest-args.ts
  • diagnostics_channel/stores/non-callable-transform.ts
  • diagnostics_channel/tracing/symbol-name-validation.ts
  • diagnostics_channel/tracing/trace-callback-position.ts

Verification

  • PATH=/home/github-runner/actions-runner/externals/node24/bin:$PATH ./run_parity_tests.sh --suite node-suite --module diagnostics_channel - passed: 64 pass, 0 fail, 0 compile fail. Report: test-parity/reports/parity_report_20260531_021504.json.
  • RUSTC_WRAPPER= cargo check -p perry-runtime -p perry-codegen -p perry-hir -p perry-api-manifest -p perry - passed with existing warnings.
  • cargo fmt --all -- --check - passed.
  • git diff --check && git diff --cached --check - passed.
  • ./scripts/check_file_size.sh - passed.
  • jq empty test-parity/known_failures.json - passed.

Known Limitations

  • This does not implement boundedChannel() or Channel#withStoreScope().
  • This does not change diagnostics worker/thread subscriber policy.

Non-Goals

  • No broad node:async_hooks redesign.
  • No node:trace_events category tracing changes.

# Conflicts:
#	crates/perry-runtime/src/closure/dispatch.rs
#	crates/perry-runtime/src/node_submodules/diagnostics.rs
@proggeramlug
proggeramlug merged commit fdff8ef into PerryTS:main May 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants