MCPcopy Create free account
hub / github.com/dop251/goja / writeShortStack

Method writeShortStack

runtime.go:376–381  ·  view source on GitHub ↗
(b *bytes.Buffer)

Source from the content-addressed store, hash-verified

374}
375
376func (e *Exception) writeShortStack(b *bytes.Buffer) {
377 if len(e.stack) > 0 && (e.stack[0].prg != nil || e.stack[0].funcName != "") {
378 b.WriteString(" at ")
379 e.stack[0].Write(b)
380 }
381}
382
383func (e *Exception) String() string {
384 if e == nil {

Callers 2

ErrorMethod · 0.95
ErrorMethod · 0.80

Calls 2

WriteStringMethod · 0.80
WriteMethod · 0.80

Tested by

no test coverage detected