Merge pull request #21369 from asgerf/js/this-bindings

JS: Emit variables for 'this'
This commit is contained in:
Asger F
2026-03-05 13:36:38 +01:00
committed by GitHub
278 changed files with 50937 additions and 44951 deletions

View File

@@ -1,4 +1,3 @@
| 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 |
| tst.js:2:3:2:16 | "key": "value" | This property is duplicated $@. | tst.js:5:3:5:16 | "key": "value" | in a later property |
| tst.js:4:3:4:14 | "1": "value" | This property is duplicated $@. | tst.js:11:3:11:12 | 1: "value" | in a later property |
| tst.js:5:3:5:16 | "key": "value" | This property is duplicated $@. | tst.js:6:3:6:16 | 'key': "value" | in a later property |

View File

@@ -3,11 +3,11 @@ var o = {
getX: function() {
return this.x;
}, // $ Alert
}, // $ MISSING: Alert // The structural comparison fails to treat the two 'this' variables as the same
setX: function(x) {
this.x = x;
},
}, // $ MISSING: Alert // The structural comparison fails to treat the two 'x' variables as the same
getX: function() {
return this.x;