You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://webidl.spec.whatwg.org/#Replaceable defines that a replaceable attribute should be an IDL attribute (accessor pair defined on the prototype instead of the instance objects), whilst it can be replaced with shadowing the prototype accessor when setting the corresponding property on the platform object, like the https://webidl.spec.whatwg.org/#example-fe2bdbf4 shows.
window.performance is defined as a replaceable attribute on WindowOrWorkerGlobalScope. Major browser implementations (Chrome, Safari, Firefox) seem to be diverging from the definition of a replaceable attribute:
window.hasOwnProperty('performance');// => true, should be false according to the definition.Object.getPrototypeOf(window).hasOwnProperty('performance');// => false, should be true
Is this an implementation bug, or should we update the spec to reflect what the reality is?
https://webidl.spec.whatwg.org/#Replaceable defines that a replaceable attribute should be an IDL attribute (accessor pair defined on the prototype instead of the instance objects), whilst it can be replaced with shadowing the prototype accessor when setting the corresponding property on the platform object, like the https://webidl.spec.whatwg.org/#example-fe2bdbf4 shows.
window.performance
is defined as a replaceable attribute on WindowOrWorkerGlobalScope. Major browser implementations (Chrome, Safari, Firefox) seem to be diverging from the definition of a replaceable attribute:Is this an implementation bug, or should we update the spec to reflect what the reality is?
Refs: nodejs/node#44483 (comment)
The text was updated successfully, but these errors were encountered: