Join MDN and developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at


by 2 contributors:

This article is in need of a technical review.

Obsolete since JSAPI 13
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

JSXDRObjectOp is the type for JSClass.xdrObject.


typedef JSBool
(* JSXDRObjectOp)(JSXDRState *xdr, JSObject **objp);
Name Type Description
xdr JSXDRState * The XDR reader or writer.
objp JSObject ** The object to be serialized or deserialized.


Serialize or deserialize an object, given an XDR state record representing external data. See jsxdrapi.h.

JSClass hooks

JSClass offers the following hook:

See Also

Document Tags and Contributors

Contributors to this page: kscarfone, arai
Last updated by: kscarfone,
Hide Sidebar