repl: limit persistent history correctly on load
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Wed, 7 Oct 2015 06:01:28 +0000 (23:01 -0700)
committerJames M Snell <jasnell@gmail.com>
Thu, 29 Oct 2015 15:38:42 +0000 (08:38 -0700)
commita04408accef331d2981056b9ede810c3e49124c6
tree19d38341767e2897cdf11d5644bf7a9d188e8415
parent788106eee972c07229e62007acc865ee42fbfe76
repl: limit persistent history correctly on load

Previously the wrong end of the history was limited on load.

PR-URL: https://github.com/nodejs/node/pull/2356
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed By: Evan Lucas <evanlucas@me.com>
lib/internal/repl.js
test/sequential/test-repl-persistent-history.js