Fixed: Make sure we return the result from an executed file in the callback

This commit is contained in:
Martin Carlberg
2021-08-18 15:56:36 +02:00
parent afd23e3457
commit 8d9c11b6f2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -478,13 +478,13 @@ Executable.fileImporterForURL = function(/*CFURL|String*/ aURL)
{
aFileExecutable.loadFileDependencies(function()
{
aFileExecutable.execute();
var result = aFileExecutable.execute();
// No more need to cache these.
disableCFURLCaching();
if (aCallback)
aCallback();
aCallback(result);
});
});
}
+1 -1
View File
@@ -76,7 +76,7 @@ FileExecutable.prototype.execute = function(/*BOOL*/ shouldForce)
this._hasExecuted = YES;
Executable.prototype.execute.call(this);
return Executable.prototype.execute.call(this);
}
DISPLAY_NAME(FileExecutable.prototype.execute);