Subj : Re: using js_HashString in a getter callback To : Brann Joly From : Brendan Eich Date : Fri May 21 2004 09:06 pm Brann Joly wrote: > In a single execution, will the same id always correspond to the same > property ? (I'm asking this because i don't want to use JS_ValueToString > each time the property is accessed, only the first time) The JSString * tagged as a jsval will not change over the life of the process embedding SpiderMonkey, for a particular id, provided you save a pointer to it before the first getter/setter call, via JS_InternString. /be .