standardizing Error.stack or equivalent
Anne van Kesteren
annevk at annevk.nl
Thu Mar 27 09:38:47 PDT 2014
On Thu, Mar 27, 2014 at 4:31 PM, Mark Miller <erights at gmail.com> wrote:
> The stack should not be accessible given only the error object. Rather,
> there should be a getStack function
> <https://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/ses/debug.js#300>
> which, given an error object, returns the stack. That way, code which does
> not have access to the getStack function cannot see the stacks.
Given the existing API which we cannot remove, isn't it too late for
that? Why would we want the asymmetry?
--
http://annevankesteren.nl/
More information about the es-discuss
mailing list