Skip to content

Implement TransformStream cleanup using "transformer.cancel" #49971

Closed

Description

@lucacasonato

The Streams specification has been updated with support for a hook to cleanup a TransformStream on error / abort. See whatwg/streams#1283. WPTs are available: web-platform-tests/wpt#40453

Activity

  1. added
    feature request
    on Sep 30, 2023
  2. added
    web streams
    on Sep 30, 2023
  3. changed the title [-]Implement TransformStream cleanup using "transformer.cleanup"[/-] [+]Implement TransformStream cleanup using "transformer.cancel"[/+] on Sep 30, 2023
  4. debadree25 commented on Sep 30, 2023

    @debadree25
    Contributor

    I am trying to implement this, i am coming across some weird behaviour for the test https://github.com/web-platform-tests/wpt/blob/1267d50de7f8adf06dbddaba00b4d9651ae146a4/streams/transform-streams/errors.any.js#L266 it seems after calling controller.error the writable stream should also error? if so cancelPromise should also throw because writable has entered errored state? or is node's behaviour wrong here?

  5. moved this from Awaiting Triage to Done in Node.js feature requestson Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestweb streams

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions