- From: Boris Zbarsky <notifications@github.com>
- Date: Thu, 28 Feb 2019 07:44:04 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 28 February 2019 15:44:25 UTC
https://heycam.github.io/webidl/#legacy-platform-object-defineownproperty step 3 says to set Desc.[[Configurable]] to true. Why is that step there? https://heycam.github.io/webidl/#dfn-named-property-visibility step 2 will ensure that own props defined on the object override named getter props, so it's not like the property will randomly go away or anything... This testcase: ``` <!DOCTYPE HTML> <script> Object.defineProperty(document, "foo", { value: 5, configurable: false, writable: false }); var attrs = document.documentElement.attributes; Object.defineProperty(attrs, "foo", { value: 5, configurable: false, writable: false }); </script> <img id="foo" name="foo"> <script> document.documentElement.setAttribute("foo", "test"); console.log(Object.getOwnPropertyDescriptor(document, "foo")); console.log(Object.getOwnPropertyDescriptor(attrs, "foo")); </script> ``` shows that none of Firefox, Chrome, Safari implement this step 3. @ms2ger @domenic @annevk -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/669
Received on Thursday, 28 February 2019 15:44:25 UTC