Subj : Re: Math and ErrorReporter To : Matthias Thiel From : Brendan Eich Date : Tue Aug 19 2003 11:52 pm Matthias Thiel wrote: >I have two problems with embedding spidermonkey. >The first one is, that I can not evaluate Math function calls like Math.random() or Math.cos(1). The result is an error which leads to the second problem: >I registered my own error reporter which just prints out the message argument. The only message it shows for any error is "can't convert Error to string". > Did you call JS_InitStandardClasses? Or alternatively, use JS_ResolveStandardClass from your global object's JSClass.resolve hook? /be .