Subj : Re: JS_THREADSAFE makes jsshell.exe fail - Reference Error To : tim_clancy From : Brendan Eich Date : Mon May 02 2005 11:15 am Timothy Clancy wrote: > I've compiled SpiderMonkey - the latest stable release with > JS_THREADSAFE defined. I've downloaded the NSPR library (4.4.1.0) for > my compiler (MSVC 2002). I've also compiled the shell for testing again > with JS_THREADSAFE defined. All files are in the same folder (js32.dll, > libnspr4.dll, jsshell.exe, perfect.js). > > When I run the 'jsshell.exe perfect.js' from the command line I get the > following output. > > --- > > > jsshell perfect.js A number is 'perfect' if it is > equal to the sum of its divisors (excluding itself). > > perfect.js:16: ReferenceError: n is not defined Sounds like you are running into the notorious MSVC "identical COMDAT folding" bug. See the release notes, the big red box and text at the top: http://www.mozilla.org/js/spidermonkey/release-notes/. /be .