Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey

This commit is contained in:
Boris Zbarsky
2016-02-26 15:23:12 -05:00
parent 2b562ca809
commit e3eff10fb4
21 changed files with 90 additions and 215 deletions

View File

@@ -1252,7 +1252,7 @@ private:
RefPtr<ScriptExecutorRunnable> runnable =
new ScriptExecutorRunnable(*this, mSyncLoopTarget, IsMainWorkerScript(),
firstIndex, lastIndex);
if (!runnable->Dispatch(nullptr)) {
if (!runnable->Dispatch()) {
MOZ_ASSERT(false, "This should never fail!");
}
}
@@ -1682,7 +1682,7 @@ public:
RefPtr<MainThreadStopSyncLoopRunnable> runnable =
new MainThreadStopSyncLoopRunnable(mParentWorker,
mSyncLoopTarget.forget(), true);
if (!runnable->Dispatch(nullptr)) {
if (!runnable->Dispatch()) {
NS_ERROR("This should never fail!");
}