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

Drop constructor requirement for defclass #632

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

borkdude
Copy link
Member

@borkdude borkdude commented Mar 4, 2025

No description provided.

@borkdude borkdude merged commit f116971 into main Mar 4, 2025
6 checks passed
@borkdude borkdude deleted the drop-constructor branch March 4, 2025 13:59
@plexus
Copy link
Contributor

plexus commented Mar 4, 2025

This still emits a constructor even if there shouldn't be one.

(squint/compile-string "(defclass my-el (extends HTMLElement))")
;;=>
"import * as squint_core from 'squint-cljs/core.js';\nclass my_el$ extends HTMLElement {\n  constructor() {\nsuper();const self__ = this;\n  }\n};\nvar my_el = my_el$;\n\nexport { my_el }\n"

@borkdude
Copy link
Member Author

borkdude commented Mar 4, 2025

@plexus Is it incorrect to emit a constructor?

@borkdude
Copy link
Member Author

borkdude commented Mar 4, 2025

@plexus Fixed in 0.8.139

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

Successfully merging this pull request may close these issues.

2 participants