[Bug 21929] named properties object should disallow definition of non-configurable properties

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21929

Tom Van Cutsem <tomvc.be@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomvc.be@gmail.com

--- Comment #4 from Tom Van Cutsem <tomvc.be@gmail.com> ---
(In reply to Travis Leithead [MSFT] from comment #3)
> Is this behavior for [[DefineOwnProperty]], now basically the same as if the
> named properties object were considered non-extensible?

No, an object marked non-extensible cannot acquire new own properties (whether
via [[DefineOwnProperty]] or via some external means). That's what it means to
be non-extensible.

I believe Cameron's fix of simply making [[DefineOwnProperty]] reject any
updates is fine in terms of ES6 invariants. This could be self-hosted as a
proxy that just returns 'false' from its defineOwnProperty trap.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 8 October 2013 07:48:45 UTC