Files
Huáng JùnliàngandGitHub 90d0687df9 [Babel 8]: partial-application plugin requires "version" option (#17760)
* breaking(partial-app): require version option

* chore: update yarn.lock

* test: add case for empty version

* update artifacts
2026-01-31 14:43:11 +01:00

26 lines
527 B
JavaScript

class Sign {
constructor(sign) {
this.sign = sign;
}
getSign() {
return this.sign;
}
}
class Partial extends Sign {
constructor(sign) {
var _this$compare, _this;
super(sign);
this.compare = (_this = this, _this$compare = this.compare, function compare(_argPlaceholder, _argPlaceholder2) {
return _this$compare.call(_this, _argPlaceholder, _argPlaceholder2);
});
}
getSign() {
return this.sign * 2;
}
compare(a, b) {
if (a > b) {
return super.getSign();
}
}
}