nJSObject obj; // a
JavaScript object
n
nPrototype
n JS_GetPrototype(cx,
obj), JS_SetPrototype(cx, obj, proto)
nParent
n JS_GetParent(cx, obj),
JS_SetParent(cx, obj, parent)
nCreate them
n JS_NewObject(cx, clasp,
proto, parent),
n JS_DefineObject(cx,
obj, name, clasp, proto, flags)
nObject Private Data
n JS_GetPrivate(cx, obj),
JS_SetPrivate(cx, obj, data)
n