-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Allow manipulating the generator in Duplex.from() #55096
base: main
Are you sure you want to change the base?
Conversation
094e571
to
c22a808
Compare
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 a few nits, good job
881baa0
to
12439c6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55096 +/- ##
=======================================
Coverage 87.99% 88.00%
=======================================
Files 656 656
Lines 188988 189033 +45
Branches 35988 35995 +7
=======================================
+ Hits 166302 166350 +48
+ Misses 15848 15844 -4
- Partials 6838 6839 +1
|
|
@benjamingr This seems super hacky... wdyt? |
@ronag I agree. I don't usually like to monkey patch stuff but in this case I coudn't think of another way... I tried using a |
@@ -401,3 +402,193 @@ function makeATestWritableStream(writeFunc) { | |||
assert.strictEqual(d.writable, false); | |||
})); | |||
} | |||
|
|||
{ |
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.
Nit: I'd really prefer if we could start adding a bit more documentation to each individual test that briefly describes what is expected and what that test is verifying.
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.
Sorry but I don't have more time to work on this at the moment. Will definitely think about it the next time I open a PR.
This PR needs a rebase |
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
0ec46d7
to
d660809
Compare
Just rebased and fixed conflicts. |
Fix for #55077