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

Method Error

runtime.go:358–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356}
357
358func (e *InterruptedError) Error() string {
359 if e == nil || e.iface == nil {
360 return "<nil>"
361 }
362 var b bytes.Buffer
363 b.WriteString(fmt.Sprint(e.iface))
364 e.writeShortStack(&b)
365 return b.String()
366}
367
368func (e *Exception) writeFullStack(b *bytes.Buffer) {
369 for _, frame := range e.stack {

Calls 3

WriteStringMethod · 0.80
writeShortStackMethod · 0.80
StringMethod · 0.65