mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Stick exn back into the context so that js_ReportErrorAgain callees can access the exception. bug 420409, patch from taras, r=mrbkap a=mconnor
This commit is contained in:
parent
66b9b2ee55
commit
18bfd5ab8a
@ -1353,7 +1353,11 @@ js_ReportUncaughtException(JSContext *cx)
|
||||
} else {
|
||||
/* Flag the error as an exception. */
|
||||
reportp->flags |= JSREPORT_EXCEPTION;
|
||||
|
||||
/* Pass the exception object. */
|
||||
JS_SetPendingException(cx, exn);
|
||||
js_ReportErrorAgain(cx, bytes, reportp);
|
||||
JS_ClearPendingException(cx);
|
||||
}
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user