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

Method Error

compiler.go:353–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351}
352
353func (e *CompilerSyntaxError) Error() string {
354 if e.File != nil {
355 return fmt.Sprintf("SyntaxError: %s at %s", e.Message, e.File.Position(e.Offset))
356 }
357 return fmt.Sprintf("SyntaxError: %s", e.Message)
358}
359
360func (e *CompilerReferenceError) Error() string {
361 return fmt.Sprintf("ReferenceError: %s", e.Message)

Callers

nothing calls this directly

Calls 1

PositionMethod · 0.45

Tested by

no test coverage detected