From 5c74b9c32e27c53ab18e24cf297cb244d30e8720 Mon Sep 17 00:00:00 2001 From: copy Date: Thu, 31 Dec 2015 00:31:22 +0100 Subject: [PATCH] Export V86 --- src/browser/starter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/browser/starter.js b/src/browser/starter.js index c73d3d95..13a8ab90 100644 --- a/src/browser/starter.js +++ b/src/browser/starter.js @@ -886,15 +886,18 @@ FileNotFoundError.prototype = Error.prototype; if(typeof window !== "undefined") { window["V86Starter"] = V86Starter; + window["V86"] = V86Starter; } else if(typeof module !== "undefined" && typeof module.exports !== "undefined") { module.exports["V86Starter"] = V86Starter; + module.exports["V86"] = V86Starter; } else if(typeof importScripts === "function") { // web worker self["V86Starter"] = V86Starter; + self["V86"] = V86Starter; } V86Starter.prototype["run"] = V86Starter.prototype.run;