Shouldn't have used such a corner-case there :worried: 

I'd say it shouldn't raise an error on the second line. Basically, what's happening is that the first line executes:

```javascript
var a;
a = b;
```

The assignment fails, but the variable `a` has already been declared, so then accessing it afterwards is legal.

Same thing happens in the Node REPL (and the FF one) even if you declare the variable and assign it in the same line:

```
> var a = b
ReferenceError: b is not defined
> a
undefined
```

So i would assume it's standard JS behaviour that when you do `var identifier = expr` the variable declaration is done first, then the evaluation of `expr` and finally the assignment (don't quote me on that though =P).

But anyway, that's not what this test should be testing. Maybe we should change the second line to something totally unrelated to the first one, like `"i'm alive"`, just to test that the REPL is still alive at that point (in the current master, the runtime error bubbles all the way up, so the second `emitLine` is never executed).