mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-19 02:43:07 +09:00
Issue #1691 - Part 12: Fix return value in ExecScript() and debug assert in ParseTask. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. ExecutionContext: The mRetValue is not used even though it is checked in various asserts. This is how it is in the Mozilla code even years later, only the passed in value is used. ParseTask: JoinDecode() and JoinCompile() run the same code but the type is different causing a debug assert when it checks the type Script vs ScriptDecode.
(cherry picked from commit 8f577428b7834b7d0f0d5afacbe060fbb1ff2136)
This commit is contained in:
parent
edb82ec9f2
commit
a892a75903
4 changed files with 11 additions and 224 deletions
|
|
@ -2350,7 +2350,7 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest)
|
|||
{
|
||||
nsJSUtils::ExecutionContext exec(cx, global);
|
||||
if (aRequest->mOffThreadToken) {
|
||||
rv = exec.JoinDecode(&aRequest->mOffThreadToken);
|
||||
rv = exec.JoinCompile(&aRequest->mOffThreadToken);
|
||||
} else {
|
||||
nsAutoString inlineData;
|
||||
SourceBufferHolder srcBuf = GetScriptSource(aRequest, inlineData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue