Created attachment 768296 [details] [diff] [review] Avoid instanceof check for Error object In testing/xpcshell/head.js we display detailed information about caught errors, based on an "instanceof Error" check. This fails if the error came from a different JS context. Here's a quick patch that uses duck typing instead of instanceof to get details from errors.
Attachment #768296 - Flags: review?(ted)
Attachment #768296 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.