Re: [whatwg/webidl] Replaceable attribute `window.performance` (Issue #1193)

> ```js
> window. hasOwnProperty('performance'); // => true, should be false according to the definition.
> ```

Interface members for interface marked with `[Global]` are properties on the instance object instead of on the interface prototype object. (see https://webidl.spec.whatwg.org/#es-attributes and step 10 in https://webidl.spec.whatwg.org/#es-platform-objects). `[Replaceable]` really only changes the behaviour of the attribute's setter (see step 4.5.5 in https://webidl.spec.whatwg.org/#dfn-attribute-setter).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1193#issuecomment-1250368242
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1193/1250368242@github.com>

Received on Sunday, 18 September 2022 19:06:49 UTC