Skip to content

11.9.0 console history is missing "the just-run command" #26013

Closed
@Pomax

Description

@Pomax

I just installed Node 11.9.0 for Windows, fired it up with node and then ran:

> [1,[2,[3]]].flat()
[ 1, 2, [ 3 ] ]
>▐

I then tapped the "up" cursor, except nothing showed up. I then continued:

> [1,[2,[3]]].flat()
[ 1, 2, [ 3 ] ]
> [4,[5,[6]]].flat()
[ 4, 5, [ 6 ] ]
>▐

I then tapped the "up" cursor key again, and got this:

> [1,[2,[3]]].flat()
[ 1, 2, [ 3 ] ]
> [4,[5,[6]]].flat()
[ 4, 5, [ 6 ] ]
> [1,[2,[3]]].flat()▐

So for some reason, the nodejs console history is skipping whatever code has just been run, which feels like a classic off-by-one bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions