diff -r 04ce04a54936 -r 7c5be05296e3 src/compiler/NameBinding.cpp --- a/src/compiler/NameBinding.cpp Sat Nov 17 20:23:36 2012 -0800 +++ b/src/compiler/NameBinding.cpp Sat Nov 17 22:02:08 2012 -0800 @@ -582,7 +582,8 @@ void visitIfStatement(IfStatement *node) { node->condition()->accept(this); node->ifTrue()->accept(this); - node->ifFalse()->accept(this); + if (node->ifFalse()) + node->ifFalse()->accept(this); } void visitIndexExpression(IndexExpression *node) { node->left()->accept(this);