summaryrefslogtreecommitdiff
path: root/cli/js/40_testing.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-25 02:56:47 +0100
committerGitHub <noreply@github.com>2022-11-25 02:56:47 +0100
commit433f38084bba9f18bdb5de22422cbbd5b0c01ff7 (patch)
tree9b8312967987bd9f31d29e70b30764223b1bd3ce /cli/js/40_testing.js
parente6a9588b4375f7ff3f445d13e4cd4b3c334d451c (diff)
fix(repl): more reliable history handling (#16797)
This commit changes history handling of the REPL. There were some situations were history wasn't properly saved and flushed to a file, making history very spotty. This commit changes it to save every line into the history file and flush it to disk before being evaluated. Thanks to this all lines, including "close()" will be stored in the history file. If for any reason we're not able to save history file, a single warning will be printed to the REPL and it will continue to work, even if subsequent tries will fail to save to disk.
Diffstat (limited to 'cli/js/40_testing.js')
0 files changed, 0 insertions, 0 deletions