Export V86
This commit is contained in:
parent
91e0137dc7
commit
5c74b9c32e
|
@ -886,15 +886,18 @@ FileNotFoundError.prototype = Error.prototype;
|
||||||
if(typeof window !== "undefined")
|
if(typeof window !== "undefined")
|
||||||
{
|
{
|
||||||
window["V86Starter"] = V86Starter;
|
window["V86Starter"] = V86Starter;
|
||||||
|
window["V86"] = V86Starter;
|
||||||
}
|
}
|
||||||
else if(typeof module !== "undefined" && typeof module.exports !== "undefined")
|
else if(typeof module !== "undefined" && typeof module.exports !== "undefined")
|
||||||
{
|
{
|
||||||
module.exports["V86Starter"] = V86Starter;
|
module.exports["V86Starter"] = V86Starter;
|
||||||
|
module.exports["V86"] = V86Starter;
|
||||||
}
|
}
|
||||||
else if(typeof importScripts === "function")
|
else if(typeof importScripts === "function")
|
||||||
{
|
{
|
||||||
// web worker
|
// web worker
|
||||||
self["V86Starter"] = V86Starter;
|
self["V86Starter"] = V86Starter;
|
||||||
|
self["V86"] = V86Starter;
|
||||||
}
|
}
|
||||||
|
|
||||||
V86Starter.prototype["run"] = V86Starter.prototype.run;
|
V86Starter.prototype["run"] = V86Starter.prototype.run;
|
||||||
|
|
Loading…
Reference in a new issue