Export V86Starter in web worker

This commit is contained in:
copy 2015-01-31 17:39:32 +01:00
parent 03fc3b821c
commit 7fd39bda00

View file

@ -785,6 +785,11 @@ else if(typeof module !== "undefined" && typeof module.exports !== "undefined")
{
module.exports["V86Starter"] = V86Starter;
}
else if(typeof importScripts === "function")
{
// web worker
self["V86Starter"] = V86Starter;
}
V86Starter.prototype["run"] = V86Starter.prototype.run;
V86Starter.prototype["stop"] = V86Starter.prototype.stop;