js-util

Home > rc-js-util > DebugSharedObjectChecks

DebugSharedObjectChecks class

Provides life cycle and access checks for shared objects.

Signature:

export declare class DebugSharedObjectChecks 

Remarks

ProtectedViews will be invalidated any time a memory resize might occur with standard _BUILD.DEBUG set.

On garbage collect of the javascript object, the associated WASM pointer is checked to see if it has been disposed of.

Methods

Method Modifiers Description
register(instance, protectedView, nameOfInstance) static  
registerWithCleanup(instance, protectedView, nameOfInstance) static Calls register on the shared object but also registers the associated cleanup on release too.
unregister(protectedView, instance, nameOfInstance) static