add support for AssignmentExpression destructuring outside of ExpressionStatement

This commit is contained in:
Sebastian McKenzie
2014-11-24 00:56:06 +11:00
parent f1759dc419
commit 04bd023787
5 changed files with 34 additions and 9 deletions

View File

@@ -1 +0,0 @@
console.log([x] = [1]);

View File

@@ -1,3 +0,0 @@
{
"throws": "AssignmentExpression destructuring outside of a ExpressionStatement is forbidden due to current 6to5 limitations"
}

View File

@@ -0,0 +1,2 @@
var _temp;
console.log((_temp = [1, 2, 3], x = _temp[0], _temp));

View File

@@ -1,3 +0,0 @@
{
"throws": "AssignmentExpression destructuring outside of a ExpressionStatement is forbidden due to current 6to5 limitations"
}