Re: How to defineObject with name, proto and parent (spidermonkey 60)
> Create the object with JS_NewObject(cx, null), store it in a local
> JS::RootedObject variable, define each property on it, then define a
> property named "object1" on the global.
> I don't know a more convenient way.