ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
495 stars 32 forks source link

How can I register a javascript custom type into Lua? #110

Closed luyufxckyouall closed 7 months ago

luyufxckyouall commented 8 months ago

For example: export default class MyClass{ public static data:string = "hello"; }

Then how can I use "MyClass" type in Lua? Can Just like js,: print(MyClass.data)--log hello?

ceifa commented 7 months ago

Yes, exactly like that!