mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
JS: Update test for UniquePropertyNames test
This query now reports the alert previously found by DuplicateProperty
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
| tst2.js:4:3:6:3 | getX: f ... .x;\\n } | This property is overwritten by $@ in the same object literal. | tst2.js:12:3:14:3 | getX: f ... .x;\\n } | another property |
|
||||
| tst2.js:8:3:10:3 | setX: f ... x;\\n } | This property is overwritten by $@ in the same object literal. | tst2.js:16:3:18:3 | setX: f ... x;\\n } | another property |
|
||||
| tst.js:20:3:20:7 | x: 23 | This property is overwritten by $@ in the same object literal. | tst.js:23:3:23:7 | x: 56 | another property |
|
||||
| tst.js:21:3:21:12 | y: "hello" | This property is overwritten by $@ in the same object literal. | tst.js:24:3:24:14 | "y": "world" | another property |
|
||||
|
||||
@@ -3,7 +3,7 @@ var o = {
|
||||
|
||||
getX: function() {
|
||||
return this.x;
|
||||
},
|
||||
}, // $ Alert
|
||||
|
||||
setX: function(x) {
|
||||
this.x = x;
|
||||
|
||||
Reference in New Issue
Block a user