DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
434 stars 59 forks source link

Add name to constructor when registering constructor #267

Closed richarddd closed 4 months ago

richarddd commented 4 months ago

Name property is not set when creating constructors. This PR adds the name from the class to the constructor so the following will work for classes defined in Rust.

new MyClass().constructor.name == "MyClass"