From 2be3c4b0e3a3a89594109f0b8e6b79c93cb9afba Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sun, 11 Dec 2016 01:53:34 +0100 Subject: internal/jsre: fix built-in inspect function inspect was broken by ffaf58f0a98 (May 2016!). Looks like nobody uses this function. --- internal/jsre/jsre.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/jsre/jsre.go') diff --git a/internal/jsre/jsre.go b/internal/jsre/jsre.go index 481389304..17b686c6a 100644 --- a/internal/jsre/jsre.go +++ b/internal/jsre/jsre.go @@ -71,7 +71,7 @@ func New(assetPath string, output io.Writer) *JSRE { } go re.runEventLoop() re.Set("loadScript", re.loadScript) - re.Set("inspect", prettyPrintJS) + re.Set("inspect", re.prettyPrintJS) return re } -- cgit v1.2.3