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

An iterator object which inherits from Object.prototype can make calls
to Promise.resolve observable to use code. This is inappropriate when
the promise is being resolved internally, so make the behaviour be
controlled by a parameter that defaults to false.

Fixes #933.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/936

-- Commit Summary --

  * Don't create iterators with Object.prototype for internal use

-- File Changes --

    M reference-implementation/lib/helpers.js (8)
    M reference-implementation/lib/readable-stream.js (70)

-- Patch Links --

https://github.com/whatwg/streams/pull/936.patch
https://github.com/whatwg/streams/pull/936.diff

-- 
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

Received on Monday, 2 July 2018 13:02:20 UTC