Skip to content

implement JSRef and JSClass types#3

Merged
Vizonex merged 1 commit into
mainfrom
jsref
Jan 16, 2026
Merged

implement JSRef and JSClass types#3
Vizonex merged 1 commit into
mainfrom
jsref

Conversation

@Vizonex
Copy link
Copy Markdown
Owner

@Vizonex Vizonex commented Jan 16, 2026

What do these changes do?

This change attempts to implement Bindings for Python Classes to JavaScript Classes allowing for newer implementations to arise.

Warning

There is however one key side-effect which is that passing Unicode attributes back and forth will crash the system which is why I am not currently ready for another public release yet. Soon as this bug is tracked down and resolved CYJS will have a 0.2.0 release.

Important

  • Class Methods have not been implemented yet but plans to be in a future update.
  • I have not gotten around to sub classing Python classes in JavaScript yet. This might need future testing...

Are there changes in behavior for the user?

Is it a substantial burden for the maintainers to support this?

Related issue number

quickjs-ng/quickjs#1317 (I'm about to close this issue as this problem has been resolved) Through the use of magic integers to restore the type objects needed.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@Vizonex Vizonex merged commit 8e1f375 into main Jan 16, 2026
31 of 34 checks passed
@Vizonex Vizonex deleted the jsref branch January 18, 2026 02:15
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.

1 participant