On Fri, May 6, 2016 at 8:51 AM, Jason Orendorff <[email protected]>
wrote:

> On Thu, May 5, 2016 at 12:39 PM, Jim Blandy <[email protected]> wrote:
>
> Of course we could store it off to the side, and thereby keep metadata
>> about non-Error exceptions. That's just not what was implemented. It'd
>> take
>> some care to ensure that the metadata stayed attached to its exception
>> value.
>>
>
> I have kind of always thought we should do this; and never mind
> "attaching" it to the exception value: it's just a separate piece of data
> that's available in cx as long as an exception is pending. For users who
> want it.
>

By "attached", I mean that we move exceptions in and out of the context for
various reasons (I don't think `finally` clauses are the only case). All
those will need to be kept in sync. This isn't any giant issue; there are
only 25 uses of setPendingException. But it'll take a bit of care.
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to