Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

repl parsing error. #8891

Closed
llafuente opened this issue Dec 17, 2014 · 5 comments
Closed

repl parsing error. #8891

llafuente opened this issue Dec 17, 2014 · 5 comments
Labels

Comments

@llafuente
Copy link

Hi,

var -name (enter) should give an error... as Node does.

luis@luis-dev:~/node -v
v0.10.26

luis@luis-dev:~/noboxout/language$ node
> var -name;
... 
> 
(^C again to quit)
> 
luis@luis-dev:~/noboxout/language$ node -e "var -name"

[eval]:1
var -name
    ^
SyntaxError: Unexpected token -
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:456:26)
    at evalScript (node.js:532:25)
    at startup (node.js:80:7)
    at node.js:902:3
@cjihrig
Copy link

cjihrig commented Dec 17, 2014

This problem still exists in 0.10.33, but has been fixed in 0.11.14.

@jasnell
Copy link
Member

jasnell commented Dec 19, 2014

This appears to be a duplicate of #8874

@llafuente
Copy link
Author

I dont think so...

@cjihrig said it was fixed in 0.11.14 (Thu, 25 Sep)
#8874 start 5 days ago...

but doesn't really matter, something need to be backported (maybe) but i can't find it...

@llafuente
Copy link
Author

This is still a bug, maybe can be closed as wontfix...

[luis@ ~]node -v
v4.4.0
[luis@ ~]node
> var -name;
... 
... 
> 
(To exit, press ^C again or type .exit)
> 

@bnoordhuis
Copy link
Member

I can confirm master is still affected, but given how the REPL works, I'm not sure if it's something that can be properly fixed.

I'll close the issue. If you still wish to pursue it, please file a new one here: https://github.com/nodejs/node/issues

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants