Report uncaught errors-as-exceptions from outermost JS_Compile*Function* API calls, just as for JS_Compile*Script* (150584, r=rginda, sr=jst).

This commit is contained in:
brendan%mozilla.org 2002-06-12 08:04:28 +00:00
parent f58b85e424
commit 7eefb1753b

View File

@ -3199,6 +3199,10 @@ out:
if (ts)
js_CloseTokenStream(cx, ts);
JS_ARENA_RELEASE(&cx->tempPool, mark);
#if JS_HAS_EXCEPTIONS
if (!fun && !cx->fp)
js_ReportUncaughtException(cx);
#endif
return fun;
}