quickjs-go
quickjs-go copied to clipboard
Create class without eval
Is there an easy way to create a class programmatically without eval?
https://github.com/buke/quickjs-go/blob/787d3dba3741fa67bd77af8965e614fa7b7772c3/quickjs_test.go#L864-L872
not yet .
create a class need to expose JS_NewClass https://github.com/buke/quickjs-go/blob/787d3dba3741fa67bd77af8965e614fa7b7772c3/deps/include/quickjs.h#L506
I will add it if I have time , maybe weeks later...
done. please see https://github.com/buke/quickjs-go/pull/459