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

Fix code bug #36128

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Fix code bug #36128

merged 1 commit into from
Sep 30, 2024

Conversation

Joamus
Copy link
Contributor

@Joamus Joamus commented Sep 30, 2024

Description

The getSenders-function is never called, but just accessed as if it was a getter-property. The proposed change correctly adds parentheses after "getSenders", so the method is properly called.

Motivation

So they won't make the same mistake I did :-)

Additional details

Link to definition of "getSenders" inn the RTCIceTransport-class. It's defined as a method, and not a property:
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getSenders

The getSenders-function is never called, but just accessed as if it was a getter-property.
@Joamus Joamus requested a review from a team as a code owner September 30, 2024 14:05
@Joamus Joamus requested review from sideshowbarker and removed request for a team September 30, 2024 14:05
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Sep 30, 2024
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

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

Thanks

Copy link
Contributor

@Josh-Cena Josh-Cena changed the title Update index.md Fix code bug Sep 30, 2024
@Josh-Cena Josh-Cena merged commit 760de2c into mdn:main Sep 30, 2024
7 checks passed
@Joamus Joamus deleted the patch-1 branch October 1, 2024 06:51
pepelsbey pushed a commit to pepelsbey/mdn-content that referenced this pull request Oct 1, 2024
fiji-flo pushed a commit that referenced this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants