Re: [streams] Make .ready fulfill-only (#248)

> +    abort() {
> +      t.fail('Unexpected abort call');
> +      t.end();
> +    }
> +  });
> +
> +  // Wait for ws to start.
> +  setTimeout(() => {
> +    ws.write('a');
> +    t.equal(ws.state, 'waiting', 'state must become waiting synchronously on write call');
> +
> +    ws.close();
> +    t.equal(ws.state, 'closing', 'state must become closing synchronously on close call');
> +
> +    ws.ready.then(v => {
> +      t.equal(ws.state, 'closing', 'state must still be closing when ready fulfills');

is this something we want to guarantee?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/248/files#r21101254

Received on Monday, 1 December 2014 16:51:31 UTC