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

Method runtimeError

debug.go:40–52  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

38}
39
40func (l *State) runtimeError(message string) {
41 l.push(message)
42 if ci := l.callInfo; ci.isLua() {
43 line, source := l.currentLine(ci), l.prototype(ci).source
44 if source == "" {
45 source = "?"
46 } else {
47 source = chunkID(source)
48 }
49 l.push(fmt.Sprintf("%s:%d: %s", source, line, message))
50 }
51 l.errorMessage()
52}
53
54func (l *State) typeError(v value, operation string) {
55 typeName := l.valueToType(v).String()

Callers 12

typeErrorMethod · 0.95
orderErrorMethod · 0.95
assertMethod · 0.95
PushFStringMethod · 0.95
tableAtMethod · 0.95
setTableAtMethod · 0.95
executeSwitchMethod · 0.95
callMethod · 0.95
growStackMethod · 0.95
nextMethod · 0.95
initFunction · 0.80
putMethod · 0.80

Calls 6

pushMethod · 0.95
currentLineMethod · 0.95
prototypeMethod · 0.95
errorMessageMethod · 0.95
chunkIDFunction · 0.85
isLuaMethod · 0.80

Tested by

no test coverage detected