Registry Mirror
Skip to content

Conversation

@andrewtdiz

Copy link
Copy Markdown
Contributor

Summary

  • Recognize node:stream/web constructor exports from namespace/member aliases and named imports so captured constructor values lower to built-in new calls.
  • Route namespace ReadableStream.from(...) to the native readable-stream factory and preserve ReadableStream binding metadata.
  • Add focused stream/web parity coverage and remove test_parity_stream_web from known failures now that it passes.

Fixes #1545.

Tests

  • cargo check -p perry-hir -p perry-codegen
  • CARGO_TARGET_DIR=/root/perry-worktrees/perry-node-probe-20260604/target PERRY_NO_AUTO_OPTIMIZE=1 npm exec --yes --package=node@26 -- bash -lc './run_parity_tests.sh --suite node-suite --module stream --filter constructor-value-refs'\n- CARGO_TARGET_DIR=/root/perry-worktrees/perry-node-probe-20260604/target PERRY_NO_AUTO_OPTIMIZE=1 npm exec --yes --package=node@26 -- bash -lc './run_parity_tests.sh --filter test_parity_stream_web'\n- jq empty test-parity/known_failures.json\n

@proggeramlug

Copy link
Copy Markdown
Contributor

Closing as redundant — node:stream/web already exposes all the constructor aliases this draft targets on current main. Verified against the build: ReadableStream, WritableStream, TransformStream, ByteLengthQueuingStrategy, CountQueuingStrategy, CompressionStream, DecompressionStream, TextDecoderStream, TextEncoderStream are all typeof === 'function', construct successfully (new ReadableStream({start(c){...}}) instanceof ReadableStream → true, new CountQueuingStrategy({highWaterMark:1}).highWaterMark → 1), and are registered in the api-manifest + codegen builtin.rs + node_submodules. Thanks @andrewtdiz.

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.

node:stream/web — implement Web Streams submodule (ReadableStream/WritableStream/TransformStream/QueuingStrategies)

2 participants