Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prevent "meteor shell" from stomping Underscore #3227
The return value of last REPL command is stored in global._ if the REPL is set to use the global context. So after you run your first REPL command, Underscore is no longer available to Meteor server code as global._ - that variable is now the result of your last REPL command.
added a commit
this pull request
Dec 4, 2014
Note that our implementation of
In other words, this change is nice because commands are still executed in global scope (so you can define top-level functions etc.). The only difference is that
Now, you might argue that having some way of accessing the last expression would be useful, but that's another discussion (that I'm happy to have here or elsewhere).