Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Esprima does not seem to correctly parse the following code.
Steps to reproduce
Actual output
The error does not occur for
2**(+4), so it appears to be specific to the base.The error does not occur for
(1+2)**4, so it appears to be specific to the unary operator.The same error does occur for the following similar expressions:
(-2)**4,(~~2)**4Relevant references
Unary operator: 12.5.6.1
Exponentiation operator: 12.6.4