Whoops, can you put parens after emit? 

emit(foo);