mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
2021-03-27 release
This commit is contained in:
@@ -896,10 +896,11 @@ set the C opaque point with
|
||||
@code{JS_GetOpaque()}/@code{JS_SetOpaque()}.
|
||||
|
||||
When defining a new JS class, it is possible to declare a finalizer
|
||||
which is called when the object is destroyed. A @code{gc_mark} method
|
||||
can be provided so that the cycle removal algorithm can find the other
|
||||
objects referenced by this object. Other methods are available to
|
||||
define exotic object behaviors.
|
||||
which is called when the object is destroyed. The finalizer should be
|
||||
used to release C resources. It is invalid to execute JS code from
|
||||
it. A @code{gc_mark} method can be provided so that the cycle removal
|
||||
algorithm can find the other objects referenced by this object. Other
|
||||
methods are available to define exotic object behaviors.
|
||||
|
||||
The Class ID are globally allocated (i.e. for all runtimes). The
|
||||
JSClass are allocated per @code{JSRuntime}. @code{JS_SetClassProto()}
|
||||
|
Reference in New Issue
Block a user