Subj : Re: Convert non-READONLY property to READONLY property. To : netscape.public.mozilla.jseng From : Brendan Eich Date : Mon Jul 12 2004 04:48 pm J.P. wrote: > In my application, the type and value of a property has to been > determined at runtime, which means that I can't set READONLY in > JS_DefinePropety(). But after the type and value has been set on that > property, I want it to be READONLY. > > Is there any way I can achieve that? JS_SetPropertyAttributes or JS_SetUCPropertyAttributes (call JS_Get*PropertyAttributes first to if you want to preserve the other attributes). /be .