temporarily forbid AssignmentExpression destructuring outside of ExpressionStatement
This commit is contained in:
1
test/fixtures/transformation/destructuring/assignment-expression/actual.js
vendored
Normal file
1
test/fixtures/transformation/destructuring/assignment-expression/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
console.log([x] = [123]);
|
||||
3
test/fixtures/transformation/destructuring/assignment-expression/options.json
vendored
Normal file
3
test/fixtures/transformation/destructuring/assignment-expression/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "AssignmentExpression destructuring outside of a ExpressionStatement is forbidden due to current limitations"
|
||||
}
|
||||
Reference in New Issue
Block a user