Skip to content
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

Identifier with \u{xxxx} doesn't make validation #1985

Open
wrt0w0 opened this issue Aug 8, 2019 · 0 comments
Open

Identifier with \u{xxxx} doesn't make validation #1985

wrt0w0 opened this issue Aug 8, 2019 · 0 comments

Comments

@wrt0w0
Copy link

@wrt0w0 wrt0w0 commented Aug 8, 2019

Steps to reproduce

es.parse('a\\u{0022}b=1')

Expected output

pares error

Actual output

{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "AssignmentExpression",
                "operator": "=",
                "left": {
                    "type": "Identifier",
                    "name": "a\"b"
                },
                "right": {
                    "type": "Literal",
                    "value": 1,
                    "raw": "1"
                }
            }
        }
    ],
    "sourceType": "script"
}

Problem location

scanner.ts:462(getComplexIdentifier)
scanner.ts:490(getComplexIdentifier)

Relevant references

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.