Re: [whatwg/streams] Don't create iterators with Object.prototype for internal use (#936)

This isn't too bad; thanks for proving it out.

For naming, hmm... `CreateStreamIterResultObject` maybe? Or `ReadableStreamCreateIterResultObject`? Or maybe depart from the "iter-result" paradigm and go with something like `CreateChunkObject` or `CreateReadResult` or similar (optionally with `ReadableStream` prefix).

I think `useObjectPrototype` is a fine name for the parameter, but an alternate direction would be to talk about the reasoning instead of the implementation details, e.g. `exposedToAuthorCode` or `exposedToJS` or `internal` or similar.

We'll definitely need a note explaining/apologizing for this operation. I'm happy to help with the wording 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/streams/pull/936#issuecomment-401858272

Received on Monday, 2 July 2018 16:20:14 UTC