Class JSClass
A JavaScript class. Subclass a D class with JSClass
to expose it to a JS VM.
class JSClass
;
Use with JSObject
to construct objects with custom behavior.
Adapted from JSClassRef
in Apple's JavaScriptCore.
Constructors
Name | Description |
---|---|
this
(definition)
|
Constructs a JavaScript class suitable for use with JSObject .
|
Fields
Name | Type | Description |
---|---|---|
definition
|
const(ClassDefinition) |
Methods
Name | Description |
---|---|
forget
()
|
Forgets this JavaScript class. |
release
()
|
Releases this JavaScript class. |
remember
()
|
Remembers this JavaScript class. |
retain
()
|
Retains this JavaScript class. |