W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > August 2011

[Bug 12998] Some attributes are not overridable with 'var' in browsers. See http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1035

From: <bugzilla@jessica.w3.org>
Date: Sat, 13 Aug 2011 02:09:44 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qs3fU-0001pX-Ra@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12998

--- Comment #10 from Cameron McCormack <cam@mcc.id.au> 2011-08-13 02:09:44 UTC ---
If the goal is to make these properties not overridable with "var", then you
wouldn't want to make them [Replaceable].  It sounds like putting [Unforgeable]
on the IDL attributes whose properties you want to be non-configurable and
non-overridable on the object itself is the thing to do.  (I renamed
[NonConfigurable] to [Unforgeable] to reflect its purpose better, since the
effect is also to make [[DefineOwnProperty]] on the object itself to refuse to
create a property with the given name.)

I haven't done the testing myself, so I won't on which specific IDL attributes
need this.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 13 August 2011 02:09:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:16 UTC