Skip to content

Conversation

@luiscubal
Copy link

Esprima (correctly) rejects expressions like -1**2.
However, expressions like (-1)**2 are valid but still rejected.
This commit fixes this issue by identifying when the left operand
is parenthesized.

Fixes #1981

Esprima (correctly) rejects expressions like -1**2. However, expressions like (-1)**2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized. Fixes jquery#1981
Base automatically changed from master to main March 16, 2021 16:37
jogibear9988 added a commit to jogibear9988/esprima-dotnet that referenced this pull request Nov 2, 2021
Esprima (correctly) rejects expressions like -1**2. - jquery/esprima#2070 However, expressions like (-1)**2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized. Fixes jquery/esprima#1981
lahma pushed a commit to sebastienros/esprima-dotnet that referenced this pull request Nov 2, 2021
…201) * Fix parsing error in exponent expressions with unary left-hand sides. Esprima (correctly) rejects expressions like -1**2. - jquery/esprima#2070 However, expressions like (-1)**2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized. Fixes jquery/esprima#1981 * add test for unary left side
JohnWinston329 added a commit to JohnWinston329/esprima-dotnet that referenced this pull request Dec 28, 2023
…(#201) * Fix parsing error in exponent expressions with unary left-hand sides. Esprima (correctly) rejects expressions like -1**2. - jquery/esprima#2070 However, expressions like (-1)**2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized. Fixes jquery/esprima#1981 * add test for unary left side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant