jshint/jshint — Issue #308: try-catch error(s)
Author: cowboy
Created: 2011-10-14 17:59:19+00:00
State: open

If I put this code into jshint.com, it seems to explode. I get this error: `Cannot read property '(global)' of undefined`.

```javascript
try {
} catch (e) {}
```

I was originally trying to test this code. This doesn't throw any kind of error for declaring a var inside of a `try` block, but shouldn't it?

```javascript
function foo() {
try {
var x = 1;
} catch (e) {
}
}
```