- From: Adam Rice <notifications@github.com>
- Date: Tue, 27 Feb 2018 09:40:31 +0000 (UTC)
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 February 2018 09:41:04 UTC
Here's the options I think we have discussed: 1. Static method (no shared state) 2. Constructor + split state 3. Constructor + shared state variants: 1. no protection against mixing APIs 2. `decode()` cannot be used while locked 3. `decode()` cannot be used while locked or after `transformer.transform()` has been called, readable and writable are locked after `decode()` has been called 4. `decode()` cannot be used after either of readable or writable has been locked, readable and writable are locked after `decode()` has been called Maybe we should only offer 1. and 2. as options? Another option I've discussed offline is having a non-static method `.asTransformStream()` which vends a TransformStream from an existing TextDecoder object. I am not keen on that. -- 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/encoding/issues/72#issuecomment-368809703
Received on Tuesday, 27 February 2018 09:41:04 UTC