swc/ecmascript/minifier/tests/terser/compress/sequences/issue_2313/output.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

15 lines
205 B
JavaScript

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