mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
15 lines
205 B
JavaScript
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();
|