Skip to content

Fix #1092: defclass that implements a protocol compiles to invalid JavaScript - #1093

Merged
borkdude merged 1 commit into
squint-cljs:mainfrom
staab:fix-defclass-protocols
Nov 16, 2026
Merged

borkdude merged 1 commit into
squint-cljs:mainfrom
staab:fix-defclass-protocols

Conversation

@staab

@staab staab commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

emit-class now emits the var first and ends the extend-type code with ;. A class that implements only Object has no extend-type code and compiles to the same output as before.

@staab
staab force-pushed the fix-defclass-protocols branch from c777401 to 116f93d Compare November 16, 2026 21:44
@borkdude
borkdude merged commit 270001a into squint-cljs:main Nov 16, 2026
3 checks passed
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