Skip to content

Stats example uses confusing variable names #768

Description

@henbos

https://w3c.github.io/webrtc-stats/#example-of-a-stats-application uses variable names that refer to both RTCStats (report) and RTCStatsReport (currentReport) as reports.

Clearly one is a report and one is a stats object. The former is clearly a report and the latter, well up for debate if this should be called stat or stats or statsObject. I don't really care as long as we don't call it a report.

Normally I wouldn't care that this example is using silly variable names, but apparently we have duplicated this confusion to both samples and CLs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions