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:
mrbkap@gmail.com 2008-03-01 14:11:27 -08:00
parent 66b9b2ee55
commit 18bfd5ab8a

View File

@ -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: