setPendingException isn't always a throw point. Sometimes we're just managing exceptions previously created: restoring an exception temporarily set aside for a `finally` block, say.
We do capture exact stack traces; it's just that the error object is where we keep all that metadata. 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. _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

