generate wrong code when transform es6-style mixin
This is es6-style mixin in MDN
commond
buble --no modules input.js
input
export default Base => class extends Base {
m1() {}
};
output
export default function (Base) (function (Base) {
{ return function anonymous () {
Base.apply(this, arguments);
}
if ( Base ) anonymous.__proto__ = Base;
anonymous.prototype = Object.create( Base && Base.prototype );
anonymous.prototype.constructor = anonymous;
anonymous.prototype.m1 = function m1 () {};
return anonymous;
}(; }Base));