We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(
)
\uFF08
\uFF09
There are some Chinese chars in my code , example :
var name = "大城小胖(fins)";
I use escodegen.generate to re-generate my code , the string become :
escodegen.generate
var name = '大城小胖\uFF08fins\uFF09';
How to keep them ?
And I've test , it's not esprima.parse's fault. the string in the AST is original.
esprima.parse
version: "escodegen": "^1.11.0", "esprima": "^4.0.1",
I found , (is not , ) is also with this bug.
,
,
The text was updated successfully, but these errors were encountered:
I found it's esutils's bug. It's too old (the last update at 4 years ago)
esutils.code.isIdentifierPartES5 can't work correctly when parse ( & ).
esutils.code.isIdentifierPartES5
esutils.code.isIdentifierPartES5("大") ---> true , it's right esutils.code.isIdentifierPartES5("(") ---> false , it's wrong
( , not ( , It's not ascii.
(
I think escodegen should find a new tool.
Sorry, something went wrong.
And I found 2 esutils projects at npmjs :
npm i esutils npm i @gerhobbelt/esutils
I've create a PR to @gerhobbelt/esutils . (wrong PR)
No branches or pull requests
There are some Chinese chars in my code , example :
I use
escodegen.generate
to re-generate my code , the string become :How to keep them ?
And I've test , it's not
esprima.parse
's fault.the string in the AST is original.
version:
"escodegen": "^1.11.0",
"esprima": "^4.0.1",
I found
,
(is not,
) is also with this bug.The text was updated successfully, but these errors were encountered: