Subj : Re: PAC support in SpiderMonkey To : netscape.public.mozilla.jseng From : Heath Raftery Date : Thu Aug 14 2003 11:20 pm In article <3F3A7A88.2000507@meer.net>, Brendan Eich wrote: > Heath Raftery wrote: > > >After a few bum steers, I found the functions defined here: > > > > >ig.js> > > > >Everything was looking rosy once I had these in. Unfortunately, isInNet > >(and others I imagine) still fail because the dnsResolve function calls > >host.resolve, which doesn't seem to be defined in the language, > > > > The core language, specified by ECMA-262 Edition 3, is a general-purpose > scripting language. It has nothing about PAC, DOM, VXML, or any of the > many other embedding layers in it. I see, but didn't Netscape/Mozilla? develop PAC? I would have thought there would be code available to support PAC files, since it seems a little silly to require everyone who wants to support PAC to roll their own. > >nor in > >that file. I went for a bit of a hunt for it but got caught chasing my > >tail. Any suggestions? > > > > If you are not using Mozilla's networking library (Necko, source in > mozilla/netwerk/), then what are you using for things like DNS resolution? I hope we are understanding each other - PAC support is just part of my C application. I use normal BSD interfaces for DNS and so forth. I also want to be able to parse a PAC file within my application though. I was hoping SpiderMonkey would help me out here, and after embedding it in my application, it appears it is. However, I'm still stuck supporting the PAC extensions to the ECMA specification. I'll look at the Necko code to see if I can rip the right parts out of there. I don't want to include the entire networking stack though, if I can help it! Thanks for your reply. -- Heath ________________________________________________________ | *Nothing is foolproof to a sufficiently talented fool* | | _\|/_ | |________________________________________m(. .)m_________| .