Checkout and Build
n cvs co -r SpiderMonkey140_NES40Rtm_Branch
mozilla/js/src
n get NSPR
n cd mozilla/js/src
n gmake -f Makefile.ref JS_THREADSAFE=1
JS_LIVECONNECT=1 NES40=1 (other flags also)
n libjs.so libjsj.so (or js32.dll)