plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).

Home Page:http://plasma-umass.github.io/doppio-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browser Build Broken

jvilk opened this issue · comments

My recent changes broke the browser build (try saying that 3 times fast!).

This is blocking me from issuing a new release. Working on it now.

Argh, I appear to be hitting an UglifyJS bug.

Original code:

public initialize(cb: (e?: Error) => void): void {
    this.loadJar((err) => {
      if (err) {
        cb();
      }
     // etc
}

JavaScript:

e.prototype.initialize=function(t){var e=this;this.loadJar(function(t){if(t)u(); /* etc */})};

I believe others are experiencing this bug. Seems to be a bug that occurs when you disable IE8 support. The default changed from supporting IE8 to not supporting IE8 in a recent version, breaking mangling on my project.

Actually, I misread the bug; it occurs when screw_ie8 is enabled. Toggling screw_ie8 doesn't appear to fix the bug, and the UglifyJS plugin for Webpack uses an older version of UglifyJS.

Fixed. I disabled screw_ie8 and fixed up some stuff that confused Webpack.