removing call to deprecated sys.p() in the REPL, now it's 'puts inspect value'

This commit is contained in:
Jeremy Ashkenas
2010-06-01 19:24:48 -04:00
parent c5fd64c72a
commit ea1411cd07
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
source: 'repl'
});
if (val !== undefined) {
p(val);
puts(inspect(val));
}
} catch (err) {
puts(err.stack || err.toString());

View File

@@ -22,7 +22,7 @@ helpers.extend global, {
run: (buffer) ->
try
val: CoffeeScript.run buffer.toString(), {no_wrap: true, globals: true, source: 'repl'}
p val if val isnt undefined
puts inspect val if val isnt undefined
catch err
puts err.stack or err.toString()
print prompt