javascript-terminal icon indicating copy to clipboard operation
javascript-terminal copied to clipboard

Gracefully handle the case when command function does not return object

Open vakrilov opened this issue 3 years ago • 0 comments

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.

vakrilov avatar Jan 12 '23 12:01 vakrilov