Skip to content

fix: memoize RTCDataChannel fields #347

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

Merged

Conversation

achingbrain
Copy link
Contributor

Stores local copies of the id, label and protocol fields for RTCDataChannel polyfill objects.

This is because libdatachannel throws if these fields are accessed on a DataChannel after it's been closed, but browsers allow access so brings the polyfill in line with other implementations.

Stores local copies of the id, label and protocol fields for
RTCDataChannel polyfill objects.

This is because libdatachannel throws if these fields are accessed
on a DataChannel after it's been closed, but browsers allow access
so brings the polyfill in line with other implementations.
@ThaUnknown
Copy link
Contributor

it's one of the things i fixed in ##324 ;-;

@mertushka
Copy link
Contributor

@murat-dogan Can you merge this please?

@murat-dogan
Copy link
Owner

Hello @achingbrain ,

I am not sure about the tests.
I mean we can not write all tests for polyfills, and actually, we don't need it.
We want to pass WPT tests as much as we can.

I think just a basic polyfill test will be enough.

@murat-dogan murat-dogan merged commit 91a423e into murat-dogan:master May 9, 2025
1 check passed
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.

4 participants