(breaking change) remove exports: CPU, MemoryFileStorage and ServerFileStorageWrapper

these are implementation details that shouldn't be part of the public api
This commit is contained in:
Fabian 2024-08-13 15:30:25 +02:00
parent 0a00f53a41
commit d368ba6ba1
3 changed files with 1 additions and 32 deletions

View file

@ -166,5 +166,6 @@ FetchNetworkAdapter.prototype.receive = function(data)
if(typeof module !== "undefined" && typeof module.exports !== "undefined")
{
// only for testing
module.exports["FetchNetworkAdapter"] = FetchNetworkAdapter;
}

View file

@ -146,21 +146,3 @@ ServerFileStorageWrapper.prototype.uncache = function(sha256sum)
{
this.storage.uncache(sha256sum);
};
// Closure Compiler's way of exporting
if(typeof module !== "undefined" && typeof module.exports !== "undefined")
{
module.exports["MemoryFileStorage"] = MemoryFileStorage;
module.exports["ServerFileStorageWrapper"] = ServerFileStorageWrapper;
}
else if(typeof window !== "undefined")
{
window["MemoryFileStorage"] = MemoryFileStorage;
window["ServerFileStorageWrapper"] = ServerFileStorageWrapper;
}
else if(typeof importScripts === "function")
{
// web worker
self["MemoryFileStorage"] = MemoryFileStorage;
self["ServerFileStorageWrapper"] = ServerFileStorageWrapper;
}

View file

@ -1674,17 +1674,3 @@ CPU.prototype.device_lower_irq = function(i)
this.devices.ioapic.clear_irq(i);
}
};
// Closure Compiler's way of exporting
if(typeof module !== "undefined" && typeof module.exports !== "undefined")
{
module.exports["CPU"] = CPU;
}
else if(typeof window !== "undefined")
{
window["CPU"] = CPU;
}
else if(typeof importScripts === "function")
{
self["CPU"] = CPU;
}