()
| 53 | } |
| 54 | |
| 55 | func (uv *Upvalue) Value() LValue { |
| 56 | //if uv.IsClosed() { |
| 57 | if uv.closed || uv.reg == nil { |
| 58 | return uv.value |
| 59 | } |
| 60 | //return uv.reg.Get(uv.index) |
| 61 | return uv.reg.array[uv.index] |
| 62 | } |
| 63 | |
| 64 | func (uv *Upvalue) SetValue(value LValue) { |
| 65 | if uv.IsClosed() { |
no outgoing calls
no test coverage detected