Subj : Re: Rhino equivalent of JSNewEnumerateOp To : netscape.public.mozilla.jseng From : Larry Blair Date : Mon Apr 14 2003 11:01 am Igor Bukanov wrote: > Larry Blair wrote: > >> We're porting our JavaScript app from spidermonkey to rhino. Today's >> new discovery is that in order to make 'for(p in o)' work, an >> enumeration method was coded in. I've searched all over and I can't >> find the rhino equivalent. How do I do this in rhino? >> > > See Scriptable.getIds() which your application should subclass to > provide list of properties of 'o' visible in for (in). Thanks for the response, Igor. My problem is that the JSNewEnumerateOp stuff allows spidermonkey to transparently perform 'for(p in o)'. As far as I can tell, to use Scriptable.getIds() I would have to root out everywhere 'for(p in o)' was used in 1900 application files and change it to call getIds() and loop through the resulting array. What I was hoping for was a way to make rhino treat 'for(p in o)' the way it can be treated in spidermonkey. .