tko icon indicating copy to clipboard operation
tko copied to clipboard

Assignment expression in parser

Open tscpp opened this issue 5 years ago • 0 comments

As far as I know, TKO uses a custom lightweight parser instead of eval nowadays. Correct me if I'm wrong.

I stumbled upon this issue while using knockout-decorators. The decorators convert the class property into a setter/getter observable, but this issue can also be experienced if you try to assign a value to a non-observable variable.

TKO doesn't support normal assignments (var = val), just observable assignment which is just a call expression. It seems to me like assignment expressions should be supported.

tscpp avatar Oct 23 '20 17:10 tscpp