Wang Ao
Wang Ao
Hi, I'd like to work on this and also #51 too. Could you give me a more detailed guide or some example?. Thank you very much!
> Yeah it would be nice. I think we need lots of APIs to make it easy to use Starlight. Like add builder like API for adding new properties to...
We now support register custom class, and also snapshot for custom class ``` use std::mem::ManuallyDrop; use starlight::{ def_native_method, def_native_property, define_jsclass, jsrt::VM_NATIVE_REFERENCES, prelude::*, prelude::{JsClass, Options}, vm::context::Context, Platform, }; pub struct Person...
but it's still a little complex now. I am going to make it simpler.
> Please also consider how to remove a custom class. > > E.g. when registering a custom class for a native module, e.g. import('my_native_mysql_con') i want to register custom Connection/Resultset...
It's very simple to register custom class now ``` pub struct Person { age: i32, } impl ClassConstructor for Person { fn constructor( _ctx: GcPointer, args: &starlight::prelude::Arguments Result { builder.method("sayHello",...
I think we could also make a public website using some static site generator, for example Docusaurus. And the docs under the root directory can be there. Also it could...
@playXE I see it before. I mean we could also consider some other more functional static site generator, including support search, table of content, auto translation to multiple language etc.
just realize, it's my typo. 🤣
Hi, I encountered a segment fault error when I run `sl examples/hello-world.js` without `.startupshot`. I feel like there has some problem in `add_conservative` in `gc.rs`. Do you have this problem?