strager
strager
Another example: `return` with value in a setter: ```js class C { get x() { return this._x; } set x(v) { this._x = v; return v; // warning } }...
More examples in TypeScript: ```typescript x!! // second ! is redundant x!?.prop // ? is redundant x!?.() // ?. is redundant ```
Test case added to test/js/unicode.js in commit c838df7566a52f36b5500147aee221e3c7ea13bd.
> I want to fix this but I need more information I updated the task description with an explanation. If you're interesting in the 'for hire' and '8$' bit: https://quick-lint-js.com/hiring/
The hard part for this task is that `NaN` can be redeclared. By the time we know whether `NaN` refers to a local variable or the global, we have forgotten...
This diagnostic is a good idea. `=== {}` is similar.
Yes. The comparison will always fail.
> can i still work on this Yes. > what folder or file should I open to make the changes In `test/test-parse-warning.cpp` there are tests for similar cases. You can...
@cgsdev0 Oh, you're right!
@nebulahh You haven't showed progress on this task, and @Rebraws wrote a PR fixing this. I'm going to close this duplicate task and leave @Rebraws assigned. Sorry for the confusion....