If an object has a getter and setter of the same name, then they shouldn't be treated as duplicate properties.
11 lines
135 B
JavaScript
11 lines
135 B
JavaScript
var x = {
|
|
get a() {},
|
|
set a(x) {},
|
|
get ["a"]() {},
|
|
set ["a"](x) {},
|
|
["a"]: 3,
|
|
b: 4,
|
|
get ["b"]() {},
|
|
set ["b"](x) {}
|
|
};
|