mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-30 07:14:39 +08:00
In JavaScript sources, WritableStream with its default writer and controller, TransformStream with its controller, pipeTo and pipeThrough, and TextEncoderStream and TextDecoderStream join the native web stream classes, following Node 24's webstreams step by step: sinks and transformers, backpressure and the writers' ready and closed promises, abort with the controller's signal, the pipe's shared write requests and its abort signal, and UTF-8 encoding and decoding across chunks settle in Node's order. The streams take own properties, which a pipe does not use for its own reads and writes, and the global object answers the classes by computed name in programs that name them. A JavaScript class that extends one of these classes keeps the SC1090 refusal, and TextDecoderStream refuses encodings other than UTF-8. The node24-web-stream lifecycle, errors, queues, transforms, pipes, pipe-errors, pipe-abort, tee and encoding cases now match Node.