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

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