(rb, rc value, op tm)
| 7 | ) |
| 8 | |
| 9 | func (l *State) arith(rb, rc value, op tm) value { |
| 10 | if b, ok := l.toNumber(rb); ok { |
| 11 | if c, ok := l.toNumber(rc); ok { |
| 12 | return arith(Operator(op-tmAdd)+OpAdd, b, c) |
| 13 | } |
| 14 | } |
| 15 | if result, ok := l.callBinaryTagMethod(rb, rc, op); ok { |
| 16 | return result |
| 17 | } |
| 18 | l.arithError(rb, rc) |
| 19 | return nil |
| 20 | } |
| 21 | |
| 22 | func (l *State) tableAt(t value, key value) value { |
| 23 | for loop := 0; loop < maxTagLoop; loop++ { |
no test coverage detected