Files
codeql/javascript/ql/test/query-tests/Declarations/UniquePropertyNames/tst2.js
Asger F 47895b3334 JS: Update test for UniquePropertyNames test
This query now reports the alert previously found by DuplicateProperty
2026-02-27 13:37:29 +01:00

27 lines
288 B
JavaScript

var o = {
x: 42,
getX: function() {
return this.x;
}, // $ Alert
setX: function(x) {
this.x = x;
}, // $ Alert
getX: function() {
return this.x;
},
setX: function(x) {
this.x = x;
}
};
function f(type) {
return {
type,
[type]: "hi"
};
}