mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
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:
parent
f58b85e424
commit
7eefb1753b
@ -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…
Reference in New Issue
Block a user