jsre: bind the pretty printer to "inspect" in JS

This commit is contained in:
Felix Lange
2015-08-15 23:55:17 +01:00
parent 5c5c3930b7
commit 49703bea0a
2 changed files with 9 additions and 0 deletions

View File

@ -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
}