зеркало из https://github.com/mozilla/pjs.git
Bug 717173 - 'Crash @ JS_ReportPendingException'. r=khuey.
This commit is contained in:
Родитель
33d5c1253c
Коммит
054729bb59
|
@ -1528,7 +1528,7 @@ WorkerRunnable::PreDispatch(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (mBusyBehavior == ModifyBusyCount) {
|
if (mBusyBehavior == ModifyBusyCount && aCx) {
|
||||||
return aWorkerPrivate->ModifyBusyCount(aCx, true);
|
return aWorkerPrivate->ModifyBusyCount(aCx, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1616,7 +1616,7 @@ WorkerRunnable::PostDispatch(JSContext* aCx, WorkerPrivate* aWorkerPrivate,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!aDispatchResult) {
|
if (!aDispatchResult && aCx) {
|
||||||
if (mBusyBehavior == ModifyBusyCount) {
|
if (mBusyBehavior == ModifyBusyCount) {
|
||||||
aWorkerPrivate->ModifyBusyCount(aCx, false);
|
aWorkerPrivate->ModifyBusyCount(aCx, false);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче