Subj : Re: a couple of problems w/ SM 1.6 To : celso From : Brendan Eich Date : Mon Sep 12 2005 09:12 pm celso wrote: > We've switched to using the MOZILLA_1_8_BRANCH SM/JS code > in our application and are very satisfied. We've had only > a couple of problems so far: > > - We're no more able to do, for example: > app.alert.apply(app, ["alert"]) > where 'app.alert' is a native function call. Both 'apply' and > 'call' are throwing the exception: > TypeError: app.alert.apply is not a function > Both JS_HAS_APPLY_FUNCTION and JS_HAS_CALL_FUNCTION are enabled > on our compilation. We're able to do the following though: > function f(a) { this.alert(a) } > f.apply(app, ["msg"]) Can you file a bug at https://bugzilla.mozilla.org/ on Core / Plugins and cc: me? Please attach a testcase if possible. Thanks. > - We get a recursion crash in our errorReporter (stack below). > JS_EvaluateUCScriptForPrincipals calls js_ReportUncaughtException, > which tries to get the exception message via js_ValueToString(cx, exn); > This ends up failing Why does it fail? > and calling JS_ReportErrorNumber, which calls > our error reporter (iJSErrorReporter), which has a call to > js_ValueToString(cx, exn) and so on. > Thanks for your attention, File a bug for the second problem, it can't hurt. It should go against Core / JavaScript Engine. To file bugs against the Core project, you will have to click on "Other Products". /be .