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();
|
||||
|
||||
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?");
|
||||
mRv.MightThrowJSException();
|
||||
@@ -954,7 +953,6 @@ bool WorkerScriptLoader::EvaluateScript(JSContext* aCx,
|
||||
mRv.StealExceptionFromJSContext(aCx);
|
||||
return false;
|
||||
}
|
||||
loadContext->mExecutionResult = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user