Re: [streams] Allow object with methods to be passed as (writeable) sink (#256)

This seems pretty reasonable. It transitions us from an "options object" model to reifying the underlying sink as a first-class object, but as you've pointed out there are benefits. (And I don't think it's just for V8; you could imagine user code doing similar things with underscored properties or similar.)

This means we will no longer be able to do type-checking on the passed in functions (since the object might have getters that sometimes return functions and sometimes don't), and instead will have to defer any errors until later when we try to invoke the method. But, no big deal.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/256#issuecomment-67711994

Received on Friday, 19 December 2014 23:24:26 UTC