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

Clarify if stat object's members can change after having been returned #121

Closed
stefhak opened this issue Dec 21, 2016 · 3 comments
Closed

Comments

@stefhak
Copy link

stefhak commented Dec 21, 2016

From web perf group review [1]:

"Some pieces of the text hint that a Stat object’s members can be changed after it is returned. But an example shows 2 objects being compared to see how a baseline compares to a later “report”. Can stat object’s values be changed after they are returned?

http://www.w3.org/TR/2016/WD-webrtc-stats-20161214/#lifetime-of-stats-objects hints that an object that has been returned to JavaScript may change between accesses, but I could be misreading it."

[1] https://lists.w3.org/Archives/Public/public-web-perf/2016Dec/0014.html

@alvestrand
Copy link
Contributor

Any such hint should be exterminated with extreme prejudice.
The intention of the stats object is that it is const after being created.

@alvestrand alvestrand self-assigned this Jan 10, 2017
@dontcallmedom
Copy link
Member

This was also reported by the original commenter in #136

@alvestrand
Copy link
Contributor

Closing this as dup of #136, which is being addressed.

@alvestrand alvestrand removed their assignment Apr 4, 2017
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

No branches or pull requests

3 participants