[webkit-dev] [JavaScriptCore] Is property attribute ReadOnly working as intended here?

Geoffrey Garen ggaren at apple.com
Mon Dec 2 10:53:25 PST 2013


Hi Alexei.

> To my knowledge, an object's prototype is consulted when a property is not found on the object itself. Any new property is written to the object, never its prototype.

That’s not quite right. The prototype chain is consulted when assigning a new property, if the prototype has a property of that name.

Geoff


More information about the webkit-dev mailing list