isaacs/sax-js — Issue #63: try/catch around require('stream') will not save you
Author: seebees
Created: 2012-02-25 23:04:04+00:00
State: open

You have a try/catch [here](https://github.com/isaacs/sax-js/blob/master/lib/sax.js#L139-143) but you use Stream.prototype.on [here](https://github.com/isaacs/sax-js/blob/master/lib/sax.js#L220)

Not a big deal, but I would humbly suggest either dropping the try/catch and all the checking [here](https://github.com/isaacs/sax-js/blob/master/lib/sax.js#L74-88) or adding some kind of on/emit logic to support browsers or other non-node environments.

Your documentation implies you want to support browsers and CommonJS environments so does that mean you want a pull request for a simple on/emit?