add destructuring support

This commit is contained in:
Sebastian McKenzie
2014-09-29 18:29:08 +10:00
parent dbf25a82ee
commit 0e19006641
15 changed files with 140 additions and 4 deletions

View File

@@ -0,0 +1 @@
var [a, [b], [c], d] = ["hello", [", ", "junk"], ["world"]];

View File

@@ -0,0 +1,5 @@
var _ref = ["hello", [", ", "junk"], ["world"]];
var a = _ref[0];
var b = _ref[1][0];
var c = _ref[2][0];
var d = _ref[3];