Closed hawkinsw closed 5 years ago
Ahh thanks for the investigation! So I think the only change needed here would be to make the PerformanceObserverInit options
optional. The observe processing model already throws a SyntaxError if the entryTypes
and type
members are both missing, so it shouldn't affect behavior.
@igrigorik @yoavweiss @toddreifsteck @rniwa @mstange FYI
Thanks for the reply. I agree with you.
Makes sense.
It is my understanding from reading the WebIDL spec that the combination of the proposed declaration of the observe() method and the PerformanceObserverInit dictionary are incompatible.
In particular, the spec says that
There are precedents with other specs where this same change needed to be made. E.g., https://github.com/whatwg/dom/issues/316
A change to
optional
will have a knock-on affect as to the value of theobserve
method'slength
. (It will go from 1 to 0).I hope that this is a cogent analysis and look forward to helping make any necessary changes. Thank you!