- From: youennf <notifications@github.com>
- Date: Thu, 12 Mar 2015 09:57:57 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 12 March 2015 16:58:26 UTC
Yes and you need to keep a reference to those wrappers throughout the lifetime of the stream (or until it gets closed/errored). In practice, it may not be needed for error, which can be collected as soon as the JS no longer keeps a reference to it. But while it eases web engine developer life a bit, I agree it makes web developer life a tad more difficult. Le 11 mars 2015 15:43, "Domenic Denicola" <notifications@github.com> a écrit : > If we were to create those just for start(), the wrappers handling would > be delegated to the JS engine, which is a bit simpler and a bit more > optimal. > > Why? For V8 you can just create a function wrapper and pass it to both > start and pull. > > — > Reply to this email directly or view it on GitHub > <https://github.com/whatwg/streams/issues/292#issuecomment-78389019>. > --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/292#issuecomment-78526960
Received on Thursday, 12 March 2015 16:58:26 UTC