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:
parent
decd49ffba
commit
125cb784d6
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user