Files
codeql/javascript/ql/test/library-tests/frameworks/ReactJS/thisAccesses.js
Josh Brown 5fb45c89e9 Revert "Merge pull request #251 from microsoft/jb1/upstream-zipslip"
This reverts commit 4dfa5d2858, reversing
changes made to 8cd58aa6e8.
2025-07-10 14:57:38 -07:00

64 lines
987 B
JavaScript

class C extends React.Component {
constructor () {
this;
var dis = this;
dis.p;
(function () {
this;
}).bind(this);
}
someInstanceMethod() {
this;
}
}
React.createClass({
render: function() {
(function () {
this;
}).bind(this);
return <div/>;
},
someInstanceMethod: function() {
this;
}
});
(function (props) {
(function () {
this; props;
}).bind(this);
return <div/>;
})
React.createClass({
render: function() {
React.Children.map(whatEver, function () {
this;
}, this)
return <div/>;
},
});
class C2 extends React.Component {
constructor (y) {
this.state = x;
this.state = y;
}
}
class C3 extends React.Component {
constructor() {
}
render() {
var foo = <this.name></this.name>;
var bar = <this.this></this.this>;
}
}