mirror of
https://github.com/nodejs/node.git
synced 2026-10-29 02:35:20 +08:00
Lines can be evaluated while the history file is still being read asynchronously by setupHistory(), e.g. when the input stream does not support pausing. The entries added to the in-memory history in the meantime were discarded once the file load completed, because the loaded entries overwrote the in-memory history. Merge the persisted entries with the in-memory ones instead. Refs: https://github.com/nodejs/node/issues/64508 Signed-off-by: Mhayk Whandson <hi@mhayk.com> PR-URL: https://github.com/nodejs/node/pull/64513 Reviewed-By: Aviv Keller <me@aviv.sh>