8000 SyntaxError: Identifier 'word' has already been declared · Issue #235 · lebab/lebab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SyntaxError: Identifier 'word' has already been declared #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kofifus opened this issue Apr 21, 2017 · 5 comments
Open

SyntaxError: Identifier 'word' has already been declared #235

kofifus opened this issue Apr 21, 2017 · 5 comments

Comments

@kofifus
Copy link
kofifus commented Apr 21, 2017
>lebab fes6.js -o fes6.js --transform template
C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\espree\espree.js:441
        throw err;
        ^

SyntaxError: Identifier 'word' has already been declared
    at Parser.instance.raise.instance.raiseRecoverable (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\espree\espree.js:437:19)
    at Parser.pp$2.checkLVal (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:1651:14)
    at Parser.checkLVal (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\espree\espree.js:285:30)
    at Parser.pp$1.parseVarId (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:1132:8)
    at Parser.pp$1.parseVar (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:1114:12)
    at Parser.pp$1.parseVarStatement (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:992:8)
    at Parser.pp$1.parseStatement (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:764:17)
    at Parser.pp$1.parseBlock (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:1064:23)
    at Parser.pp$3.parseFunctionBody (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:2426:22)
    at Parser.pp$1.parseFunction (C:\Users\AppData\Roaming\npm\node_modules\lebab\node_modules\acorn\dist\acorn.js:1165:8)

This seems to happen for the next transform running after 'let'

@nene
Copy link
Collaborator
nene commented Apr 25, 2017

Thanks for the report. Please include a code snippet which you're trying to transform, that causes the crash.

@nene
Copy link
Collaborator
nene commented Aug 1, 2017

Having received no further information for several months, I'm c 8000 losing this.

@nene nene closed this as completed Aug 1, 2017
@IlyaGulya
Copy link
IlyaGulya commented Jun 13, 2020

Hello @nene!
Here's simple snippet which causes espree to fail during parsing:

function testFn(e, t) {
}

var testFn

@nene
Copy link
Collaborator
nene commented Jul 1, 2020

Thanks.

@nene
Copy link
Collaborator
nene commented Mar 12, 2023
5EB8

Unfortunatly not much I can do about this as this is a problem in espree parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0