loganfsmyth at gmail.com
Fri Apr 5 01:17:52 UTC 2019
Symbols seems like a good way to do this, but since the ECMA spec doesn't
define anything about IO, I don't think this would be their responsibility.
This seems more like something the console API spec would expose, e.g.
`console.inspect`, where the `Symbol.XX` namespace would be reserved for
On Thu, Apr 4, 2019 at 5:44 PM Sultan <thysultan at gmail.com> wrote:
> Like Symbol.iterator, a Symbol.inspect symbol for use in implementing
> cross-platform console display introspection.
> Currently node has something akin to this with a magic inspect method on
> This would pave a cow path for how different platforms can afford this
> ability to consumers without each inventing their own heuristic, i.e in the
> browser i might have an exotic object that i want console.error to display
> a toString payload instead of the objects shape.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss