update exponentiation operator precedence - fixes #2431
This commit is contained in:
3
test/fixtures/experimental/exponentiation-operator/options.json
vendored
Normal file
3
test/fixtures/experimental/exponentiation-operator/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["exponentiationOperator"]
|
||||
}
|
||||
1
test/fixtures/experimental/exponentiation-operator/unparenthesized-left/actual.js
vendored
Normal file
1
test/fixtures/experimental/exponentiation-operator/unparenthesized-left/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
-5 ** 6;
|
||||
3
test/fixtures/experimental/exponentiation-operator/unparenthesized-left/options.json
vendored
Normal file
3
test/fixtures/experimental/exponentiation-operator/unparenthesized-left/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:1)"
|
||||
}
|
||||
Reference in New Issue
Block a user