diff options
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() } |