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

Method writeFullStack

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

Source from the content-addressed store, hash-verified

366}
367
368func (e *Exception) writeFullStack(b *bytes.Buffer) {
369 for _, frame := range e.stack {
370 b.WriteString("\tat ")
371 frame.Write(b)
372 b.WriteByte('\n')
373 }
374}
375
376func (e *Exception) writeShortStack(b *bytes.Buffer) {
377 if len(e.stack) > 0 && (e.stack[0].prg != nil || e.stack[0].funcName != "") {

Callers 2

StringMethod · 0.95
StringMethod · 0.80

Calls 2

WriteStringMethod · 0.80
WriteMethod · 0.80

Tested by

no test coverage detected