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

Method arithError

debug.go:96–101  ·  view source on GitHub ↗
(v1, v2 value)

Source from the content-addressed store, hash-verified

94}
95
96func (l *State) arithError(v1, v2 value) {
97 if _, ok := l.toNumber(v1); !ok {
98 v2 = v1
99 }
100 l.typeError(v2, "perform arithmetic on")
101}
102
103func (l *State) concatError(v1, v2 value) {
104 _, isString := v1.(string)

Callers 1

arithMethod · 0.95

Calls 2

toNumberMethod · 0.95
typeErrorMethod · 0.95

Tested by

no test coverage detected