tmpvar/jsdom — pull request #786 by akiyoshi83 (2014-06-07 09:40:14+00:00)
Title: Raise error with stack trace.

I changed for a detailed error want on error as JavaScript.

Example:
```javascript
var jsdom = require("jsdom");

var window = jsdom.jsdom(
/* Raise JavaScrpt Error */
'',
null, {
features: {
FetchExternalResources: ["script", "img", "css", "frame", "iframe", "link"],
ProcessExternalResources: ["script"],
SkipExternalResources: false,
MutationEvents: '2.0',
QuerySelector: false
}
}).createWindow();

var errors = window.document.errors;
if(errors && errors.length) {
errors.forEach(function(e) {
/* Print Stack Trace */
console.log(e.data.stack);
});
}
window.close();
```

As follows result.
```
TypeError: Object [object global] has no method 'undefinedMethod'
at file:///dev/jsdom/test_stack_trace.js:undefined:undefined