fix this bug: Incorrect scope analysis of class name in extends expression, as the code follows, the C in probeHeritage function body should be the class C, not var C
more details see here: ref
var C = 'outside';
var cls = class C extends (
probeHeritage = function() { return C; },
setHeritage = function() { }
) {
method() {
return C;
}
};
fix this bug: Incorrect scope analysis of class name in extends expression, as the code follows, the C in
probeHeritage
function body should be theclass C
, notvar C
more details see here: ref