Bug 1906394 - Part 3: Add alreadyStarted out parameter for StartIncrementalEncoding. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D215834
This commit is contained in:
@@ -214,9 +214,12 @@ nsresult ModuleLoader::CompileFetchedModule(
|
||||
|
||||
if (aRequest->IsTextSource() &&
|
||||
aRequest->PassedConditionForBytecodeEncoding()) {
|
||||
if (!JS::StartIncrementalEncoding(aCx, std::move(stencil))) {
|
||||
bool alreadyStarted;
|
||||
if (!JS::StartIncrementalEncoding(aCx, std::move(stencil),
|
||||
alreadyStarted)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
MOZ_ASSERT(!alreadyStarted);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
@@ -263,9 +266,12 @@ nsresult ModuleLoader::CompileFetchedModule(
|
||||
|
||||
if (aRequest->IsTextSource() &&
|
||||
aRequest->PassedConditionForBytecodeEncoding()) {
|
||||
if (!JS::StartIncrementalEncoding(aCx, std::move(stencil))) {
|
||||
bool alreadyStarted;
|
||||
if (!JS::StartIncrementalEncoding(aCx, std::move(stencil),
|
||||
alreadyStarted)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
MOZ_ASSERT(!alreadyStarted);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user