Skip to content

Conversation

addaleax
Copy link
Collaborator

Instead of returning the ShellResult interpretation of the evaluation
result back to the Node.js REPL, return the original raw value and
keep the ShellResult stored separately (which still needs to happen
during eval, as the formatting itself is a synchronous operation).

This ensures that _ will always refer to the actual value of the
last evaluation result.

addaleax added 3 commits July 15, 2021 15:12
Instead of returning the ShellResult interpretation of the evaluation
result back to the Node.js REPL, return the original raw value and
keep the ShellResult stored separately (which still needs to happen
during `eval`, as the formatting itself is a synchronous operation).

This ensures that `_` will always refer to the actual value of the
last evaluation result.
@addaleax addaleax merged commit bf84ae2 into main Jul 16, 2021
@addaleax addaleax deleted the 902-dev branch July 16, 2021 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants