support patterns in constants
This commit is contained in:
2
test/fixtures/syntax/constants/destructuring-assignment/actual.js
vendored
Normal file
2
test/fixtures/syntax/constants/destructuring-assignment/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
const [a, b] = [1, 2];
|
||||
a = 3;
|
||||
3
test/fixtures/syntax/constants/destructuring-assignment/options.json
vendored
Normal file
3
test/fixtures/syntax/constants/destructuring-assignment/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "a is read-only"
|
||||
}
|
||||
Reference in New Issue
Block a user