From 49703bea0aac8c06856a506b35bccf30cf0c2520 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 15 Aug 2015 23:55:17 +0100 Subject: jsre: bind the pretty printer to "inspect" in JS --- jsre/jsre.go | 1 + 1 file changed, 1 insertion(+) (limited to 'jsre/jsre.go') diff --git a/jsre/jsre.go b/jsre/jsre.go index bb0cc71ed..0db9e33fc 100644 --- a/jsre/jsre.go +++ b/jsre/jsre.go @@ -66,6 +66,7 @@ func New(assetPath string) *JSRE { re.loopWg.Add(1) go re.runEventLoop() re.Set("loadScript", re.loadScript) + re.Set("inspect", prettyPrintJS) return re } -- cgit v1.2.3