The *errors.errorString should have a better representation, perhaps Error("...") or something similar. This may not be something we add directly to this (private) type but more specifically handling an error interface type in the Inspect method for the script engine.
When you run
require("events")
in the REPL you seeThe
*errors.errorString
should have a better representation, perhapsError("...")
or something similar. This may not be something we add directly to this (private) type but more specifically handling anerror
interface type in theInspect
method for the script engine.