Subj : define new function in Class String (Spidermonkey) To : netscape.public.mozilla.jseng From : Blaubaer Date : Wed Jan 05 2005 01:12 am I want's to define a new function in jsstr.c and I want to change the value of the String. OBJ_GET_SLOT(cx, obj, JSSLOT_PRIVATE); works but: OBJ_SET_SLOT(cx, obj, JSSLOT_PRIVATE, val); resets the value after leaving the funtion? :-( Thx Blaubaer .