Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user