fyi, I fixed this exception in some pull request `source` throws on document.location.__proto__ attribute. (but you can keep the try/catch, as this patch may still not be landed)
We are also having another issue with source where the output is __HUGE__ for some object and opened bug https://bugzilla.mozilla.org/show_bug.cgi?id=846290