mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
Run JavaScript WritableStream, TransformStream and pipes natively
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.
This commit is contained in:
@@ -81289,9 +81289,9 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "not-implemented",
|
||||
"detail": "No static compiler lowering is registered for this API yet.",
|
||||
"verification": "registry-gap"
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the documented static async-iteration subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user