Open luiscubal opened 3 years ago
Esprima (correctly) rejects expressions like -12. However, expressions like (-1)2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized.
Fixes https://github.com/jquery/esprima/issues/1981
Esprima (correctly) rejects expressions like -12. However, expressions like (-1)2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized.
Fixes https://github.com/jquery/esprima/issues/1981