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

Method concatError

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

Source from the content-addressed store, hash-verified

101}
102
103func (l *State) concatError(v1, v2 value) {
104 _, isString := v1.(string)
105 _, isNumber := v1.(float64)
106 if isString || isNumber {
107 v1 = v2
108 }
109 _, isString = v1.(string)
110 _, isNumber = v1.(float64)
111 l.assert(!isString && !isNumber)
112 l.typeError(v1, "concatenate")
113}
114
115func (l *State) assert(cond bool) {
116 if !cond {

Callers 1

concatMethod · 0.95

Calls 2

assertMethod · 0.95
typeErrorMethod · 0.95

Tested by

no test coverage detected