mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 717173 - 'Crash @ JS_ReportPendingException'. r=khuey.
This commit is contained in:
parent
50cbb4cd5b
commit
2011976f88
@ -1528,7 +1528,7 @@ WorkerRunnable::PreDispatch(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mBusyBehavior == ModifyBusyCount) {
|
||||
if (mBusyBehavior == ModifyBusyCount && aCx) {
|
||||
return aWorkerPrivate->ModifyBusyCount(aCx, true);
|
||||
}
|
||||
|
||||
@ -1616,7 +1616,7 @@ WorkerRunnable::PostDispatch(JSContext* aCx, WorkerPrivate* aWorkerPrivate,
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!aDispatchResult) {
|
||||
if (!aDispatchResult && aCx) {
|
||||
if (mBusyBehavior == ModifyBusyCount) {
|
||||
aWorkerPrivate->ModifyBusyCount(aCx, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user