Should the console.log in Node.js display internal properties like Promise status, Proxy targets, WeakMap entries, etc., which is what Chrome's console.log shows?
-
-
Technically speaking, everything can be observable from JS in Node.js, so there is a higher risk in exposing things (e.g. you can um...hijack console._stdout which is the stream that console.log writes to
and it's depended on by testing frameworks) -
Is there a "maybe" option?
I guess the question is, how many devs (ab)use console log to print to stdout, and would break on a suddenly more complex output.
I wouldn't worry about ppl trying to game the system by hacking console._stdout 
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.