|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
JSObject
obj; // a JavaScript object
|
|
|
n |
Prototype
|
|
|
JS_GetPrototype(cx, obj),
JS_SetPrototype(cx, obj, proto)
|
|
n |
Parent
|
|
|
JS_GetParent(cx, obj), JS_SetParent(cx,
obj, parent)
|
|
|
n |
Create
them
|
|
|
JS_NewObject(cx, clasp, proto, parent),
|
|
|
JS_DefineObject(cx, obj, name, clasp,
proto, flags)
|
|
|
n |
Object
Private Data
|
|
|
JS_GetPrivate(cx, obj), JS_SetPrivate(cx,
obj, data)
|
|
|
|