Andreas Tolfsen feba3b59a8 Bug 1107706: Part 6: Make SpecialPowersError a prototypal Error
If special powers is imported using Components.utils.import on B2G which
has some special concepts around global scoping, a TypeError will be
raised unless the custom error is a prototypal Error.

An explanation can be found for a similar issue in bug 843892, which
states that toString is attached to the instances rather than the
prototype, and that this causes problems once the object goes through
Object.freeze.  It was patched in bug 1014484.

This patch also renames SpecialPowersException to SpecialPowersError.

--HG--
extra : rebase_source : c2be428467e07ee476577a1c2a24a782bd6b52a3
extra : source : 69669d0e6ddcaa2b16d69f96750c50f694247271
2015-02-26 17:40:21 +00:00
..