js-util

Home > rc-js-util > DebugProtectedView

DebugProtectedView class

Provides a view of an object that can be invalidated, causing attempts to access it to error in _BUILD.DEBUG.

Signature:

export declare class DebugProtectedView<T extends object> implements IDebugProtectedView 

Implements: IDebugProtectedView

Remarks

Allows the specification of safeKeys, accessing of these is not an error regardless of invalidation state.

Constructors

Constructor Modifiers Description
(constructor)(owningInstance, debugInfo, safeKeys)   Constructs a new instance of the DebugProtectedView class

Properties

Property Modifiers Type Description
createTypedArrayView static <TCtor extends TTypedArrayCtor>(owningInstance: IEmscriptenWrapper<object>) => DebugProtectedView<InstanceType<TCtor>>  
owningInstance   IEmscriptenWrapper<object>  

Methods

Method Modifiers Description
createProtectedView(view)    
invalidate()    
unwrapProtectedView(view) static