Symbol.inspect
Sultan
thysultan at gmail.com
Fri Apr 5 00:44:23 UTC 2019
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
objects.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190405/642ffcfa/attachment.html>
More information about the es-discuss
mailing list