Function

JSClassCreate(_:)

Creates a JavaScript class suitable for use with JSObjectMake.

Declaration

func JSClassCreate(_ definition: UnsafePointer<JSClassDefinition>!) -> JSClassRef!

Parameters

definition

A JSClassDefinition that defines the class.

Return Value

A JSClass with the given definition. Ownership follows the Create Rule.