add support for AssignmentExpression destructuring outside of ExpressionStatement
This commit is contained in:
@@ -1 +0,0 @@
|
||||
console.log([x] = [1]);
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "AssignmentExpression destructuring outside of a ExpressionStatement is forbidden due to current 6to5 limitations"
|
||||
}
|
||||
2
test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js
vendored
Normal file
2
test/fixtures/transformation/es6-destructuring/assignment-expression/expected.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
var _temp;
|
||||
console.log((_temp = [1, 2, 3], x = _temp[0], _temp));
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "AssignmentExpression destructuring outside of a ExpressionStatement is forbidden due to current 6to5 limitations"
|
||||
}
|
||||
Reference in New Issue
Block a user