Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment expression in parser #120

Open
tscpp opened this issue Oct 23, 2020 · 0 comments
Open

Assignment expression in parser #120

tscpp opened this issue Oct 23, 2020 · 0 comments

Comments

@tscpp
Copy link

tscpp commented Oct 23, 2020

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 tscpp changed the title Support for decorators Parser: Assignment support Apr 15, 2021
@tscpp tscpp changed the title Parser: Assignment support Assignment expression in parser Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant