tmpvar/jsdom — pull request #410 by Xavi- (2012-02-27 09:02:55+00:00)
Title: Wrapped callback with `process.nextTick` to avoid accidental exception swallowing

Several times I've ran into situation where an error in the callback for `jsdom.env` was inadvertently swallowed by the try/catch statement in `/jsdom/lib/jsdom/level2/events.js:202`. Wrapping the callback in a `process.nextTick` got rid of the problem and let exception bubble to the top.