phil294 / coffeesense

IntelliSense for CoffeeScript. LSP implementation / VSCode extension
MIT License
47 stars 8 forks source link

`.valueOf` is being added to `this` #13

Closed STRd6 closed 2 years ago

STRd6 commented 2 years ago
@

Actual:

this.valueOf()

Expected:

this

I tested in CoffeeScript 2.6.1 as well as the var-assign branch and those were both correct so I think valueOf is being added by the extension.

phil294 commented 2 years ago

when or where do you see this .valueOf and how or where is this a problem? As long as it doesn't affect autocomplete etc. I think it should not matter (?)

STRd6 commented 2 years ago

Screenshot 2022-04-27 120302

The type of @ becomes Object after .valueOf() is attached to it causing a spurious type error.