Merge branch 'hotfix/v7.4.2' into release/v7.5.0

This commit is contained in:
Oleg Korshul
2023-09-01 21:13:00 +03:00
22 changed files with 1768 additions and 498 deletions

View File

@ -303,43 +303,3 @@ var performance = window.performance = (function(){
now : function() { return Date.now() - basePerformanceOffset; }
};
})();
(function(window, undefined){
function ZLib()
{
/** @suppress {checkVars} */
this.engine = CreateEmbedObject("CZipEmbed");
this.files = {};
}
ZLib.prototype.isModuleInit = true;
ZLib.prototype.open = function(buf)
{
return this.engine.open((undefined !== buf.byteLength) ? new Uint8Array(buf) : buf);
};
ZLib.prototype.create = function()
{
return this.engine.create();
};
ZLib.prototype.save = function()
{
return this.engine.save();
};
ZLib.prototype.getFile = function(path)
{
return this.engine.getFile(path);
};
ZLib.prototype.addFile = function(path, data)
{
return this.engine.addFile(path, (undefined !== data.byteLength) ? new Uint8Array(data) : data);
};
ZLib.prototype.removeFile = function(path)
{
return this.engine.removeFile(path);
};
ZLib.prototype.close = function()
{
return this.engine.close();
};
window.nativeZlibEngine = new ZLib();
})(window, undefined);