mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
cb2b0c671f
swc_ecma_transforms_base: - `hygiene`: Don't rename if not required. (#1600) swc_ecma_minifier: - Remove `hygiene_optimizer`.
46 lines
704 B
JavaScript
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"
|
|
};
|