MCPcopy Index your code
hub / github.com/yuin/gopher-lua / panicWithTraceback

Function panicWithTraceback

_state.go:553–557  ·  view source on GitHub ↗

* }}} */ * package local methods {{{ */

(L *LState)

Source from the content-addressed store, hash-verified

551/* package local methods {{{ */
552
553func panicWithTraceback(L *LState) {
554 err := newApiError(ApiErrorRun, L.Get(-1))
555 err.StackTrace = L.stackTrace(0)
556 panic(err)
557}
558
559func panicWithoutTraceback(L *LState) {
560 err := newApiError(ApiErrorRun, L.Get(-1))

Callers

nothing calls this directly

Calls 3

newApiErrorFunction · 0.70
GetMethod · 0.45
stackTraceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…