lautis / uglifier

Ruby wrapper for UglifyJS JavaScript compressor.
http://www.rubydoc.info/gems/uglifier
MIT License
613 stars 82 forks source link

ReferenceError: assignment to undeclared variable BCa #140

Closed ahorek closed 6 years ago

ahorek commented 6 years ago

source: https://github.com/c3js/c3/blob/v0.4.15/c3.js

    axis.tickValues = function (x) {
        if (typeof x === 'function') {
            tickValues = function tickValues() {
                return x(scale.domain());
            };
        } else {
            if (!arguments.length) {
                return tickValues;
            }
            tickValues = x;
        }
        return axis;
    };
    return axis;

4.1.12 (and previous versions are fine)

j.tickValues=function(t){if("function"==typeof t)$=function(){return t(q.domain())};else{if(!arguments.length)return $;$=t}return j},j}

4.1.13 & 4.1.14

 j.tickValues=function(t){if("function"==typeof t)BCa=function(){return t(q.domain())};else{if(!arguments.length)return BCa;BCa=t}return j},j}
ahorek commented 6 years ago

I can confirm it's already fixed in UglifyJS 3.4.4 ( https://github.com/mishoo/UglifyJS2/pull/3207 ), @lautis could you upgrade and release 4.1.15? thanks

lautis commented 6 years ago

Thanks for the investigation! Released 4.1.15 with UglifyJS 3.4.4.