mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Fix REPL when env.HOME isn't available - #2945
This commit is contained in:
parent
3b38153759
commit
5162472f16
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
replDefaults = {
|
replDefaults = {
|
||||||
prompt: 'coffee> ',
|
prompt: 'coffee> ',
|
||||||
historyFile: path.join(process.env.HOME, '.coffee_history'),
|
historyFile: process.env.HOME ? path.join(process.env.HOME, '.coffee_history') : void 0,
|
||||||
historyMaxInputSize: 10240,
|
historyMaxInputSize: 10240,
|
||||||
"eval": function(input, context, filename, cb) {
|
"eval": function(input, context, filename, cb) {
|
||||||
var Assign, Block, Literal, Value, ast, err, js, _ref1;
|
var Assign, Block, Literal, Value, ast, err, js, _ref1;
|
||||||
|
|
|
@ -7,7 +7,7 @@ CoffeeScript = require './coffee-script'
|
||||||
|
|
||||||
replDefaults =
|
replDefaults =
|
||||||
prompt: 'coffee> ',
|
prompt: 'coffee> ',
|
||||||
historyFile: path.join(process.env.HOME, '.coffee_history')
|
historyFile: path.join process.env.HOME, '.coffee_history' if process.env.HOME
|
||||||
historyMaxInputSize: 10240
|
historyMaxInputSize: 10240
|
||||||
eval: (input, context, filename, cb) ->
|
eval: (input, context, filename, cb) ->
|
||||||
# XXX: multiline hack.
|
# XXX: multiline hack.
|
||||||
|
|
Loading…
Add table
Reference in a new issue