Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Keep REPL running on runtime errors #2817
commented on the diff
Mar 12, 2013
|@@ -91,3 +91,9 @@ testRepl "existential assignment of previously declared variable", (input, outpu|
|input.emitLine 'a = null'|
|input.emitLine 'a ?= 42'|
|eq '42', output.lastWrite()|
|+testRepl "keeps running after runtime error", (input, output) ->|
|+ input.emitLine 'a = b'|
|+ eq 0, output.lastWrite().indexOf 'ReferenceError: b is not defined'|
|+ input.emitLine 'a'|
|+ eq 'undefined', output.lastWrite()|