[whatwg/streams] Add TransformStream tests for re-entrant strategies (#795)

Add tests to ensure that implementations of TransformStream behave correctly
when operations are triggered from within the readableStrategy.size function.

This is not really a "supported" use case as any code that does this is either
malicious or broken, but implementations need to avoid crashes or memory
corruption in these cases.

Also merge changes to recording-streams.js from web-platform-tests that are
required to make these tests work.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add TransformStream tests for re-entrant strategies

-- File Changes --

    M reference-implementation/to-upstream-wpts/resources/recording-streams.js (8)
    A reference-implementation/to-upstream-wpts/transform-streams/reentrant-strategies.html (14)
    A reference-implementation/to-upstream-wpts/transform-streams/reentrant-strategies.js (311)

-- Patch Links --

https://github.com/whatwg/streams/pull/795.patch
https://github.com/whatwg/streams/pull/795.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/795

Received on Monday, 11 September 2017 10:24:49 UTC