Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
streams: refactor ReadableStream asyncIterator creation and a few fixes#23042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
streams: refactor ReadableStream asyncIterator creation and a few fixes #23042
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Sep 23, 2018
targos commented Sep 23, 2018
Can you explain in the commit message the reason for the refactor and what the fixes are? |
a0f83a8 to ae8b7f8Comparedevsnek commented Sep 23, 2018
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
Can you add a test that shows that #23041 is fixed? I know it is, but the test would be more readable that way.
devsnek commented Sep 23, 2018
@mcollina the lines i added to the test file are that |
mcollina commented Sep 23, 2018
@devsnek I specifically mean:
This seems a valid use case to test anyway. |
jasnell left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @mcollina's nit addressed
ae8b7f8 to 49eedb7Comparedevsnek commented Sep 24, 2018
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
danbev commented Oct 4, 2018
Re-run of failing node-test-commit-custom-suites-freestyle. |
devsnek commented Oct 7, 2018
Closes: nodejs#23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: nodejs#23042Fixes: nodejs#23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
49eedb7 to 8bce9e8Comparedevsnek commented Oct 9, 2018
landed in 8bce9e8 |
Closes: #23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: #23042Fixes: #23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Closes: #23041 - Rewrite `ReadableAsyncIterator` class into `ReadableStreamAsyncIteratorPrototype` which contains no constructor and inherits from `%AsyncIteratorPrototype%`. - Rewrite `AsyncIteratorRecord` into dumb function. PR-URL: #23042Fixes: #23041 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Closes: #23041
@nodejs/streams
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes