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

Substitution error with js* in clojurescript #122

Open
bendlas opened this issue Oct 29, 2024 · 0 comments
Open

Substitution error with js* in clojurescript #122

bendlas opened this issue Oct 29, 2024 · 0 comments

Comments

@bendlas
Copy link

bendlas commented Oct 29, 2024

When evaluating js* forms in in sp or ap in clojurescript, generated code is incorrect:

((m/sp
     (js* "'~{}'" "String Content"))
   js/console.log js/console.error)

Yields cr145825_place_0 as string content.


similarly, for map expressions:

  ((m/sp
     (js* "({~{}:~{}})" "key" 42))
   js/console.log js/console.error)
{cr145829_place_0: 42}
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