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

Method isAlive

value.go:55–57  ·  view source on GitHub ↗

isAlive reports whether a Value can safely reach QuickJS.

()

Source from the content-addressed store, hash-verified

53
54// isAlive reports whether a Value can safely reach QuickJS.
55func (v *Value) isAlive() bool {
56 return v != nil && v.ctx != nil && v.ctx.isAlive() && v.ctx.hasValidRef()
57}
58
59// belongsTo reports whether a Value belongs to the given live Context.
60func (v *Value) belongsTo(ctx *Context) bool {

Callers 15

SetMethod · 0.95
SetIdxMethod · 0.95
CallMethod · 0.95
ExecuteMethod · 0.95
CallConstructorMethod · 0.95
DefinePropertyMethod · 0.95
DefinePropertyAtomMethod · 0.95
DefinePropertyValueMethod · 0.95
DefinePropertyGetSetMethod · 0.95
OwnPropertyMethod · 0.95
GetAtomMethod · 0.95
SetAtomMethod · 0.95

Calls 1

hasValidRefMethod · 0.80

Tested by 1