mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
removing call to deprecated sys.p() in the REPL, now it's 'puts inspect value'
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
source: 'repl'
|
||||
});
|
||||
if (val !== undefined) {
|
||||
p(val);
|
||||
puts(inspect(val));
|
||||
}
|
||||
} catch (err) {
|
||||
puts(err.stack || err.toString());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user