mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
(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:
parent
0a00f53a41
commit
d368ba6ba1
3 changed files with 1 additions and 32 deletions
|
|
@ -166,5 +166,6 @@ FetchNetworkAdapter.prototype.receive = function(data)
|
|||
|
||||
if(typeof module !== "undefined" && typeof module.exports !== "undefined")
|
||||
{
|
||||
// only for testing
|
||||
module.exports["FetchNetworkAdapter"] = FetchNetworkAdapter;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
14
src/cpu.js
14
src/cpu.js
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue