MCPcopy Create free account
hub / github.com/buke/quickjs-go / IsClassInstance

Method IsClassInstance

value.go:1151–1153  ·  view source on GitHub ↗

============================================================================= CLASS INSTANCE SUPPORT METHODS (replaced invalid class ID constant) ============================================================================= IsClassInstance checks if the value is an instance of any user-defined class

()

Source from the content-addressed store, hash-verified

1149// IsClassInstance checks if the value is an instance of any user-defined class
1150// This method uses opaque data validation for maximum reliability
1151func (v *Value) IsClassInstance() bool {
1152 return v != nil && v.HasInstanceData()
1153}
1154
1155// HasInstanceData checks if the value has associated Go object data
1156// This is the most reliable way to identify our class instances

Callers 1

Calls 1

HasInstanceDataMethod · 0.95

Tested by 1