Subj : Re: spidermonkey CGI To : netscape.public.mozilla.jseng From : Brendan Eich Date : Mon Jun 09 2003 11:43 pm Brendan Eich wrote: > But it would be better to add a built-in "environment" object to js.c > by which arbitrary envariables could be reflected into JS. Then you > could say "const QUERY_STRING = environment.QUERY_STRING;" and go to > town. Something like the attached patch. Let me know how it works > for you. The second attachment is a diff -pwu, just for easy > reviewing -- don't apply it. Do apply the first attachment using > patch to an up-to-date js.c. I improved the patch further, made a similar one for xpcshell, and attached them both to bug 208879 (http://bugzilla.mozilla.org/show_bug.cgi?id=208879). /be .