swc/ecmascript/minifier/tests/terser/compress/sequences/issue_2313/input.js
강동윤 c6b22c57f8
feat(es/minifier): Implement minifier partially (#1302)
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
2021-05-20 13:51:30 +09:00

17 lines
219 B
JavaScript

var a = 0,
b = 0;
var foo = {
get c() {
a++;
return 42;
},
set c(c) {
b++;
},
d: function () {
this.c++;
if (this.c) console.log(a, b);
},
};
foo.d();