You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
repl: '...' should not be detected as REPL keyword #14426
I've modified REPL so that ... is not considered as a REPL keyword anymore.
I'm seeing different behviours on REPL of node inspect -p and node. On the inspector I see the expected
@shivanth I'm not sure ...[] is valid expression. [...[]] is...
The inspect console is a special REPL implemented by node-inspect so it behaves different than the regular REPL. They are both trying to say that ...[] is an invalid expression.
Activity
shivanth commentedon Jul 22, 2017
I take this up ...
repl:Do not consider `...` as a REPL command
shivanth commentedon Jul 23, 2017
I've modified REPL so that
...is not considered as a REPL keyword anymore.I'm seeing different behviours on REPL of
node inspect -pandnode. On the inspector I see the expectedBut on
nodeREPL, I see that it's expecting more inputWhat could be the reason ?
refack commentedon Jul 23, 2017
@shivanth I'm not sure
...[]is valid expression.[...[]]is...The inspect console is a special REPL implemented by
node-inspectso it behaves different than the regular REPL. They are both trying to say that...[]is an invalid expression.refack commentedon Jul 23, 2017
P.S. IMHO what you showed in the comment #14426 (comment) above is the correct behaviour
shivanth commentedon Jul 24, 2017
@refack , you mean to say that the REPL should wait for more input after seeing
...[]?refack commentedon Jul 24, 2017
I think so... That's how the REPL behaves with invalid expressions:
silverwind commentedon Jul 24, 2017
Which is pretty weird in itself imho, but yes, this seems to be the correct behaviour right now.
repl: do not consider `...` as a REPL command
repl: do not consider `...` as a REPL command
repl: do not consider `...` as a REPL command