Global Variable

kJSClassDefinitionEmpty

A JSClassDefinition structure of the current version, filled with NULL pointers and having no attributes.

Declaration

const JSClassDefinition kJSClassDefinitionEmpty;

Discussion

Use this constant as a convenience when creating class definitions. For example, to create a class definition with only a finalize method:

JSClassDefinition definition = kJSClassDefinitionEmpty; definition.finalize = Finalize;