[whatwg] Bug in defineProperty
Ian Hickson
ian at hixie.ch
Mon Jan 23 16:35:04 PST 2012
On Thu, 4 Aug 2011, Evgeny Burzak wrote:
>
> It seems there is a bug in function Object.defineProperty.
> When property was defined with enumerable descriptor = false, I can
> anyway get it in iterator if was defined prop with the same name in
> object prototype.
> Almost all browsers affected , except for Firefox. Maybe this happened
> due to ambiguous definition?
>
> Test
>
> function test() {Object.defineProperty(this, "a", {value : "b",
> writable : true,
> enumerable : false,
> configurable : true});
> }
> test.prototype.a = "c"
> t = new test()
> for(x in t) console.log([x, t[x]])
>
> Results
>
> IE9: a,b
> Chrome: a,b
> Opera: failed
> Firefox: nothing - right job
It's not clear to me which spec this feedback is intended for. Could you
elaborate on which specification you would like to change for this? (It
may be that this is the wrong mailing list.)
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list