You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a setter don't use its argument, plugin babel-plugin-minify-dead-code-elimination removes it. But a setter must always have exactly one argument.
The following mocha+should test passes with babili 0.0.8 (when it shouldn't):
describe("babili",function(){describe("has a bug",function(){it("with setters that don't use its argument",function(){varcode="class C {set field(x) {this._x = 10;}} var x = new C()";varmin=babel.transform(code,{presets:["babili"],comments:false}).code;min.should.match(/set field\(\)/);(()=>eval(min)).should.throw(/Setter must have exactly one formal parameter/);});});});
The text was updated successfully, but these errors were encountered:
If a setter don't use its argument, plugin babel-plugin-minify-dead-code-elimination removes it. But a setter must always have exactly one argument.
The following mocha+should test passes with babili 0.0.8 (when it shouldn't):
The text was updated successfully, but these errors were encountered: