mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: recognize binding decorators on classes
This commit is contained in:
@@ -120,4 +120,18 @@ class Component1 extends React.Component {
|
||||
|
||||
}
|
||||
|
||||
@autobind
|
||||
class Component2 extends React.Component {
|
||||
|
||||
render() {
|
||||
return <div>
|
||||
<div onClick={this.bound_throughClassDecorator_autobind}/> // OK
|
||||
</div>;
|
||||
}
|
||||
|
||||
bound_throughClassDecorator_autobind() {
|
||||
this.setState({ });
|
||||
}
|
||||
|
||||
}
|
||||
// semmle-extractor-options: --experimental
|
||||
|
||||
Reference in New Issue
Block a user