Hello,
I discovered that the following ES5 code evaluates differently in FF4
than Chrome and Safari.


function Ctor() {};
Object.defineProperty(Ctor.prototype, "prop", {
        value: "prototype",
        writable: false
});

var obj = new Ctor();
obj.prop = "own";
alert(obj.prop + ", " + obj.hasOwnProperty("prop"));


Chrome and Safari gives: "own, true".
FF4 gives: "prototype, false".

Could anybody explain why?

greetings
Michal

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to