df500282cd
* Built-in constructors now return the newly constructed object, which will be used as `this`. This allows for constructors such as `new Object` which can return differing types. * Adjust `FunctionObject::constructor` to take both a constructor and a function. Add `constructor_to_fn!` macro to turn most simple native constructors into a function that discards the return value. * Change `TObject::construct` to return `Value` instead of `Object`. This is necessary for constructors that return primitive values. |
||
---|---|---|
.. | ||
assets | ||
macros | ||
src | ||
tests | ||
Cargo.toml |