pub trait ObjectDef { fn init<'js>(ctx: Ctx<'js>, object: &Object<'js>) -> Result<()>; }
The helper trait to define objects
Initialize object contents
You should set fields with specific values using Object::set method.