MCPcopy Create free account
hub / github.com/Shopify/go-lua / value

Method value

stack.go:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61func (l *State) newUpValue() *upValue { return &upValue{home: nil} }
62
63func (uv *upValue) value() value {
64 if home, ok := uv.home.(stackLocation); ok {
65 return home.state.stack[home.index]
66 }
67 return uv.home
68}
69
70func (uv *upValue) close() {
71 if home, ok := uv.home.(stackLocation); ok {

Callers 1

typeErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected