1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

joyent/node#1914: REPL no longer hides undefined results

This commit is contained in:
Michael Ficarra 2011-11-05 10:35:27 -04:00
parent 11f048c368
commit 1c86aee7a4
2 changed files with 3 additions and 7 deletions

View file

@ -52,11 +52,8 @@
filename: 'repl',
modulename: 'repl'
});
if (returnValue === void 0) {
global._ = _;
} else {
process.stdout.write(inspect(returnValue, false, 2, enableColours) + '\n');
}
if (returnValue === void 0) global._ = _;
process.stdout.write(inspect(returnValue, false, 2, enableColours) + '\n');
} catch (err) {
error(err);
}