codeql/javascript/ql/test/library-tests/ClassNode/tst2.js

21 строка
213 B
JavaScript

class C {
constructor(x) {
this.x = x;
}
method() {
this.x;
let closure = () => this.x;
}
get getter() {
return this.x;
}
}
class D {
constructor() {
this.f = (x) => {};
}
}