javascript-terminal
javascript-terminal copied to clipboard
Gracefully handle the case when command function does not return object
Currently if the function of a command does not return an object, error is thrown because the code tries to destructure undefined. However, it is possible that a command does not have an output or change in state - if it only contains side-effects not related to the terminal state. This PR just handles this case.