diff options
author | Felix Lange <fjl@twurst.com> | 2016-12-11 08:53:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-12-20 21:35:14 +0800 |
commit | 2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba (patch) | |
tree | 58ed4c771d183c5416bf8203e5a0f431bee84be5 /internal/jsre/pretty.go | |
parent | 0ee796632a9c0f5e098cdced6c4f9033c00cd149 (diff) | |
download | go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar.gz go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar.bz2 go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar.lz go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar.xz go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.tar.zst go-tangerine-2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba.zip |
internal/jsre: fix built-in inspect function
inspect was broken by ffaf58f0a98 (May 2016!).
Looks like nobody uses this function.
Diffstat (limited to 'internal/jsre/pretty.go')
-rw-r--r-- | internal/jsre/pretty.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/jsre/pretty.go b/internal/jsre/pretty.go index 8fe00cc4c..e096eec23 100644 --- a/internal/jsre/pretty.go +++ b/internal/jsre/pretty.go @@ -73,10 +73,10 @@ func jsErrorString(err error) string { return err.Error() } -func prettyPrintJS(call otto.FunctionCall, w io.Writer) otto.Value { +func (re *JSRE) prettyPrintJS(call otto.FunctionCall) otto.Value { for _, v := range call.ArgumentList { - prettyPrint(call.Otto, v, w) - fmt.Fprintln(w) + prettyPrint(call.Otto, v, re.output) + fmt.Fprintln(re.output) } return otto.UndefinedValue() } |