[whatwg/streams] strategy.size() can reenter WritableStream logic before its caller finishes all the work (#675)

Looks ReadableStream has the same issue.

The other user provided functions e.g. ones on underlyingSource/Sink which are invoked after their caller finishes all the work that touches the state variables of the streams. But in the callers of strategy.size(), there're lines that touch the state variables (both reading and writing) after strategy.size() is invoked. strategy.size() can implemented to call writer function or controller functions, and therefore reentry may happen. Should we have some guard against such a reentry?

-- 
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/issues/675

Received on Wednesday, 25 January 2017 17:26:08 UTC