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

Function panicWithTraceback

state.go:653–657  ·  view source on GitHub ↗

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

(L *LState)

Source from the content-addressed store, hash-verified

651/* package local methods {{{ */
652
653func panicWithTraceback(L *LState) {
654 err := newApiError(ApiErrorRun, L.Get(-1))
655 err.StackTrace = L.stackTrace(0)
656 panic(err)
657}
658
659func panicWithoutTraceback(L *LState) {
660 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…