Bug 1742438 - Part 10: Remove mExecutionResult; r=asuth
This field is no longer necessary, as we are removing executed scripts from our list of scripts to execute, so we cannot enter a state where something may be executed twice. Differential Revision: https://phabricator.services.mozilla.com/D146182
This commit is contained in:
@@ -899,7 +899,6 @@ bool WorkerScriptLoader::EvaluateScript(JSContext* aCx,
|
|||||||
WorkerLoadContext* loadContext = aRequest->GetWorkerLoadContext();
|
WorkerLoadContext* loadContext = aRequest->GetWorkerLoadContext();
|
||||||
|
|
||||||
NS_ASSERTION(loadContext->mExecutionScheduled, "Should be scheduled!");
|
NS_ASSERTION(loadContext->mExecutionScheduled, "Should be scheduled!");
|
||||||
NS_ASSERTION(!loadContext->mExecutionResult, "Should not have executed yet!");
|
|
||||||
|
|
||||||
MOZ_ASSERT(!mRv.Failed(), "Who failed it and why?");
|
MOZ_ASSERT(!mRv.Failed(), "Who failed it and why?");
|
||||||
mRv.MightThrowJSException();
|
mRv.MightThrowJSException();
|
||||||
@@ -954,7 +953,6 @@ bool WorkerScriptLoader::EvaluateScript(JSContext* aCx,
|
|||||||
mRv.StealExceptionFromJSContext(aCx);
|
mRv.StealExceptionFromJSContext(aCx);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
loadContext->mExecutionResult = true;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ class WorkerLoadContext : public JS::loader::LoadContextBase {
|
|||||||
RefPtr<workerinternals::loader::CacheCreator> GetCacheCreator();
|
RefPtr<workerinternals::loader::CacheCreator> GetCacheCreator();
|
||||||
|
|
||||||
bool mExecutionScheduled = false;
|
bool mExecutionScheduled = false;
|
||||||
bool mExecutionResult = false;
|
|
||||||
|
|
||||||
Maybe<nsString> mSourceMapURL;
|
Maybe<nsString> mSourceMapURL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user