aboutsummaryrefslogtreecommitdiffstats
path: root/internal/jsre
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-07 23:14:40 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-08-07 23:14:40 +0800
commitf42bd73ce5e9c4d87b0bbcfbd900641305ebe894 (patch)
tree05ecc8d89fc79af9e7193d3754dee1e3c8166fcf /internal/jsre
parentf5925b045945824c4a128b01551ecece37bc1a95 (diff)
downloadgo-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar.gz
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar.bz2
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar.lz
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar.xz
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.tar.zst
go-tangerine-f42bd73ce5e9c4d87b0bbcfbd900641305ebe894.zip
internal: fix megacheck warnings (#14919)
Diffstat (limited to 'internal/jsre')
-rw-r--r--internal/jsre/pretty.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/jsre/pretty.go b/internal/jsre/pretty.go
index e096eec23..16fa91b67 100644
--- a/internal/jsre/pretty.go
+++ b/internal/jsre/pretty.go
@@ -65,14 +65,6 @@ func prettyError(vm *otto.Otto, err error, w io.Writer) {
fmt.Fprint(w, ErrorColor("%s", failure))
}
-// jsErrorString adds a backtrace to errors generated by otto.
-func jsErrorString(err error) string {
- if ottoErr, ok := err.(*otto.Error); ok {
- return ottoErr.String()
- }
- return err.Error()
-}
-
func (re *JSRE) prettyPrintJS(call otto.FunctionCall) otto.Value {
for _, v := range call.ArgumentList {
prettyPrint(call.Otto, v, re.output)