js-util

Home > rc-js-util > IDebugProtectedView

IDebugProtectedView interface

Factory for creating proxy objects that can be invalidated later. Once invalidated any property read that wasn’t explicitly marked safe will cause a debug error. Available in debug contexts only.

Signature:

export interface IDebugProtectedView 

Properties

Property Modifiers Type Description
owningInstance   IEmscriptenWrapper<object>  

Methods

Method Description
createProtectedView(view) Create a proxy to the view, if invalidate called then access of non safeKeys will cause a debug error.
invalidate() Invalidates all previous views.