summaryrefslogtreecommitdiff
path: root/test/fixtures/.empty-repl-history-file
diff options
context:
space:
mode:
authorMudit Ameta <zeusdeux@gmail.com>2015-12-02 02:19:01 +0530
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2015-12-22 13:29:28 -0500
commit29c4a2af5c6707f435279e3fa8ac3b7b40ff2f7d (patch)
treede76f20a10944bc23e365e60495ba236bba5de94 /test/fixtures/.empty-repl-history-file
parent79dc1d7635344960ca79842e3f47bfdf11f9f881 (diff)
downloadandroid-node-v8-29c4a2af5c6707f435279e3fa8ac3b7b40ff2f7d.tar.gz
android-node-v8-29c4a2af5c6707f435279e3fa8ac3b7b40ff2f7d.tar.bz2
android-node-v8-29c4a2af5c6707f435279e3fa8ac3b7b40ff2f7d.zip
repl: Fixed node repl history edge case.
If the deprecated NODE_REPL_HISTORY_FILE is set to default node history file path ($HOME/.node_repl_history) and the file doesn't exist, then node creates the file and then crashes when it tries to parse that file as JSON thinking that it's an older JSON formatted history file. This fixes that bug. This patch also prevents node repl from throwing if the old history file is empty or if $HOME/.node_repl_history is empty. Fixes: https://github.com/nodejs/node/issues/4102 PR-URL: https://github.com/nodejs/node/pull/4108 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/fixtures/.empty-repl-history-file')
-rw-r--r--test/fixtures/.empty-repl-history-file0
1 files changed, 0 insertions, 0 deletions
diff --git a/test/fixtures/.empty-repl-history-file b/test/fixtures/.empty-repl-history-file
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/test/fixtures/.empty-repl-history-file