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

Method hasValidContext

value.go:50–52  ·  view source on GitHub ↗

hasValidContext reports whether a Value still has a usable context pointer.

()

Source from the content-addressed store, hash-verified

48
49// hasValidContext reports whether a Value still has a usable context pointer.
50func (v *Value) hasValidContext() bool {
51 return v != nil && v.ctx != nil && v.ctx.hasValidRef()
52}
53
54// isAlive reports whether a Value can safely reach QuickJS.
55func (v *Value) isAlive() bool {

Callers 15

belongsToMethod · 0.95
FreeMethod · 0.95
ToNumberMethod · 0.95
ToIndexMethod · 0.95
ToBigInt64Method · 0.95
ToBigUint64Method · 0.95
ToInt64ExtMethod · 0.95
ToPropertyKeyMethod · 0.95
ToStringUTF16Method · 0.95
GetMethod · 0.95
GetIdxMethod · 0.95
GetInt64Method · 0.95

Calls 1

hasValidRefMethod · 0.80

Tested by 1