Skip to content

Commit 71fb6bf

Browse files
committed
JS: Mark corresponding lost result for the getter
1 parent c673bd9 commit 71fb6bf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

javascript/ql/test/query-tests/Expressions/DuplicateProperty/DuplicateProperty.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
| tst2.js:4:3:6:3 | getX: f ... .x;\\n } | This property is duplicated $@. | tst2.js:12:3:14:3 | getX: f ... .x;\\n } | in a later property |
21
| tst.js:2:3:2:16 | "key": "value" | This property is duplicated $@. | tst.js:5:3:5:16 | "key": "value" | in a later property |
32
| tst.js:4:3:4:14 | "1": "value" | This property is duplicated $@. | tst.js:11:3:11:12 | 1: "value" | in a later property |
43
| tst.js:5:3:5:16 | "key": "value" | This property is duplicated $@. | tst.js:6:3:6:16 | 'key': "value" | in a later property |

javascript/ql/test/query-tests/Expressions/DuplicateProperty/tst2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var o = {
33

44
getX: function() {
55
return this.x;
6-
}, // $ Alert
6+
}, // $ MISSING: Alert // The structural comparison fails to treat the two 'this' variables as the same
77

88
setX: function(x) {
99
this.x = x;

0 commit comments

Comments
 (0)