mozilla/pdf.js — Issue #1104: Use error('message') instead of "throw 'message'"
Author: arturadib
Created: 2012-01-19 21:17:07+00:00
State: open
Labels: 1-core

This convenience function enables backtracing by throwing an `Error()` object, which makes the stack trace available. Hopefully this will lead to more detailed error reports.

This will require a global change in the code base though.

/cc @brendandahl @notmasteryet @kkujala