swc/ecmascript/minifier/tests/terser/compress/object/getter_setter/output.js
강동윤 cb2b0c671f
fix(es/transforms/base): Optimize hygiene (#2193)
swc_ecma_transforms_base:
 - `hygiene`: Don't rename if not required. (#1600)

swc_ecma_minifier:
 - Remove `hygiene_optimizer`.
2021-09-01 13:11:55 +00:00

46 lines
704 B
JavaScript

var get = "bar";
var a = {
get: get,
set: "foo",
get bar () {
return this.get;
},
get 5 () {
return "five";
},
get 3925 () {
return "f five five";
},
get five () {
return 5;
},
set one (value){
this._one = value;
},
set 9 (value1){
this._nine = value1;
},
set 10 (value2){
this._ten = value2;
},
set eleven (value3){
this._eleven = value3;
}
};
var b = {
get () {
return "gift";
},
set: function(code) {
return "Storing code " + code;
}
};
var c = {
["get"]: "foo",
["set"]: "bar"
};
var d = {
get: "foo",
set: "bar"
};