(L *LState, lhs, rhs LValue, event string)
| 2438 | } |
| 2439 | |
| 2440 | func objectRationalWithError(L *LState, lhs, rhs LValue, event string) bool { |
| 2441 | switch objectRational(L, lhs, rhs, event) { |
| 2442 | case 1: |
| 2443 | return true |
| 2444 | case 0: |
| 2445 | return false |
| 2446 | } |
| 2447 | L.RaiseError("attempt to compare %v with %v", lhs.Type().String(), rhs.Type().String()) |
| 2448 | return false |
| 2449 | } |
| 2450 | |
| 2451 | func objectRational(L *LState, lhs, rhs LValue, event string) int { |
| 2452 | m1 := L.metaOp1(lhs, event) |
no test coverage detected
searching dependent graphs…