Skip to content
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

feat(node): Duplex.fromWeb #2086

Merged
merged 4 commits into from
Apr 13, 2022
Merged

feat(node): Duplex.fromWeb #2086

merged 4 commits into from
Apr 13, 2022

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Apr 6, 2022

Needed for #2061
not sure where to put isReadableStream & isWritableStream.
Also it seems node has no test for this

@kt3k
Copy link
Member

kt3k commented Apr 6, 2022

It looks like they are testing the internal utils (such as newStreamDuplexFromReadableWritablePair) instead of testing public interfaces directly https://github.com/nodejs/node/pull/39134/files#diff-d8ce88f0cd20640d6cdffb550abcd3a8fb9b4e543cc04bc87c2d827802e7dc60

Is it possible to somehow borrow these test cases to fix fit into our situation?

@crowlKats
Copy link
Member Author

@kt3k no idea. looking through those tests, they use an internal symbol for web streams called kState. we dont have that, so dont think we can even run those tests...

@kt3k
Copy link
Member

kt3k commented Apr 6, 2022

Then maybe let's invent something very simple for now. It also will be tested in the implementation of #2061

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we should land this as is for now. We should fix any bug in the future work in #2061 anyways

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, let's land it now.

@bartlomieju bartlomieju changed the title feat(compat): Duplex.fromWeb feat(node): Duplex.fromWeb Apr 13, 2022
@bartlomieju bartlomieju merged commit 5d7915c into denoland:main Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants