(L *LState)
| 94 | } |
| 95 | |
| 96 | func debugGetUpvalue(L *LState) int { |
| 97 | fn := L.CheckFunction(1) |
| 98 | idx := L.CheckInt(2) |
| 99 | name, value := L.GetUpvalue(fn, idx) |
| 100 | if len(name) > 0 { |
| 101 | L.Push(LString(name)) |
| 102 | L.Push(value) |
| 103 | return 2 |
| 104 | } |
| 105 | L.Push(LNil) |
| 106 | return 1 |
| 107 | } |
| 108 | |
| 109 | func debugSetFEnv(L *LState) int { |
| 110 | L.SetFEnv(L.CheckAny(1), L.CheckAny(2)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…