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.
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.