Files
codeql/javascript/ql/src/LanguageFeatures/examples/SetterIgnoresParameter.js
2018-08-02 17:53:23 +01:00

8 lines
141 B
JavaScript

function Point(x, y) {
return {
get x() { return x; },
set x(_x) { x = _x|0; },
get y() { return y; },
set y(_y) { y = _x|0; }
};
}