зеркало из https://github.com/mozilla/pjs.git
Bug 88130: XPConnect disturbs exception state of the call-context. This is jband's patch to reorder calls and fix whitspace. r=rginda, sr=jst
This commit is contained in:
Родитель
0ea7f4676c
Коммит
c473de394e
|
@ -66,12 +66,12 @@ static inline JSExceptionState* DoPreScriptEvaluated(JSContext* cx)
|
|||
|
||||
static inline void DoPostScriptEvaluated(JSContext* cx, JSExceptionState* state)
|
||||
{
|
||||
if(JS_GetContextThread(cx))
|
||||
JS_EndRequest(cx);
|
||||
|
||||
if(state)
|
||||
JS_RestoreExceptionState(cx, state);
|
||||
|
||||
if(JS_GetContextThread(cx))
|
||||
JS_EndRequest(cx);
|
||||
|
||||
#ifndef XPCONNECT_STANDALONE
|
||||
// If this is a DOM JSContext, then notify nsIScriptContext of script
|
||||
// completion so that it can reset its infinite loop detection mechanism.
|
||||
|
|
Загрузка…
Ссылка в новой задаче