Stream: javy

Topic: Subclassing JS class in Javy?


view this post on Zulip Brian Cardarella (Aug 05 2025 at 18:32):

Is there a method in rquickjs to have a #[class] struct act as a JS subclass of another #[class] struct?

view this post on Zulip Notification Bot (Aug 05 2025 at 18:37):

A message was moved here from #javy > Is Javy running a quickjs in wasm? by Brian Cardarella.

view this post on Zulip Saúl Cabrera (Aug 07 2025 at 15:02):

I believe it's doable, however, I think for this to work, you'd need to implement JsClass instead of using the #[class] attribute macro and ensure that the right prototype is set to create the desired prototype chain.


Last updated: Dec 06 2025 at 07:03 UTC