mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
15 lines
220 B
JavaScript
15 lines
220 B
JavaScript
var obj = {
|
|
get [foobar]() {
|
|
return "foobar";
|
|
},
|
|
set [foobar](x) {
|
|
console.log(x);
|
|
},
|
|
get test() {
|
|
return "regular getter after computed property";
|
|
},
|
|
set "test"(x) {
|
|
console.log(x);
|
|
}
|
|
};
|