MCPcopy Index your code
hub / github.com/Shopify/go-lua / orderError

Method orderError

debug.go:88–94  ·  view source on GitHub ↗
(left, right value)

Source from the content-addressed store, hash-verified

86}
87
88func (l *State) orderError(left, right value) {
89 leftType, rightType := l.valueToType(left).String(), l.valueToType(right).String()
90 if leftType == rightType {
91 l.runtimeError(fmt.Sprintf("attempt to compare two '%s' values", leftType))
92 }
93 l.runtimeError(fmt.Sprintf("attempt to compare '%s' with '%s'", leftType, rightType))
94}
95
96func (l *State) arithError(v1, v2 value) {
97 if _, ok := l.toNumber(v1); !ok {

Callers 2

lessThanMethod · 0.95
lessOrEqualMethod · 0.95

Calls 3

valueToTypeMethod · 0.95
runtimeErrorMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected