mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
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();
|