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');

I agree that this is good check about immediateness. But I'd like to confirm if you there's any other thing we want to guarantee by this expectation.

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

Received on Monday, 1 December 2014 16:55:19 UTC