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

git-svn-id: svn://10.0.0.236/trunk@123145 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2002-06-12 08:04:28 +00:00
parent decd49ffba
commit 125cb784d6

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;
}