zaach/jison — pull request #80 by pufuwozu (2012-01-23 09:40:31+00:00)
Title: TypeError when a  moduleName isn't supplied to "generate"

I'm working on a language called Roy. A couple of users ran into a Jison problem when installing it:

https://github.com/pufuwozu/roy/issues/95

My parser is generated with the following line of code:

fs.writeFile('src/typeparser.js', parser.generate());

I don't supply any opts. Before this change we didn't check if `opts.moduleName` was `undefined` which caused a `TypeError`.

Thanks!