Class JSClass

A JavaScript class. Subclass a D class with JSClass to expose it to a JS VM.

class JSClass ;

Use with JSObject.make to construct objects with custom behavior.

Adapted from JSClassRef in Apple's JavaScriptCore.

Constructors

NameDescription
this (definition) Constructs a JavaScript class suitable for use with JSObject.make.

Fields

NameTypeDescription
definition const(ClassDefinition)

Methods

NameDescription
forget () Forgets this JavaScript class.
release () Releases this JavaScript class.
remember () Remembers this JavaScript class.
retain () Retains this JavaScript class.