[whatwg/streams] TransformStream: clear algorithms once they will no longer be called (#937)

Clear the flushAlgorithm and transformAlgorithm slots when they will no
longer be called. This allows resources such as the transformer object
to be freed.

The case where transformAlgorithm returns a rejection isn't currently
handled because it can't be done efficiently as the moment. Once
finally() is added to the WritableStream underlying sink interface this
will be trivial.

Part of #932.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/937

-- Commit Summary --

  * TransformStream: clear algorithms once they will no longer be called

-- File Changes --

    M index.bs (17)
    M reference-implementation/lib/transform-stream.js (11)

-- Patch Links --

https://github.com/whatwg/streams/pull/937.patch
https://github.com/whatwg/streams/pull/937.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/937

Received on Monday, 2 July 2018 14:59:32 UTC