XBOX::VJSObject VJSObject::GetPrototype (const XBOX::VJSContext &inContext) { if (IsObject()) return XBOX::VJSObject( inContext, JS4D::ValueToObject( inContext, JSObjectGetPrototype(inContext, fObject), NULL)); else return XBOX::VJSObject( inContext, NULL); }
NATIVE(JSObject,jlong,getPrototype) (PARAMS, jlong ctx, jlong object) { return (long) JSObjectGetPrototype((JSContextRef) ctx, (JSObjectRef) object); }