davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging
ISC License
5.98k stars 361 forks source link

gopher.js #87

Open pjebs opened 6 years ago

pjebs commented 6 years ago

I noticed that spew doesn't seem to work for gopher.js js objects:

eg.

(*main.TzTray)(<nil>)({
 tz: (float64) 0,
 showSeconds: (bool) true,
 tray: (*js.Object)(<nil>)(<already shown>),
 ticker: (*time.Ticker)(<nil>),
 eventEmitter: (*js.Object)(<nil>)(<already shown>)
})

I can see that eventEmitter is being showed as <nil> when I know it is not.