console: fixup console.dir() error handling
#11443
+57
−50
Closed