add destructuring no element test

This commit is contained in:
Sebastian McKenzie 2014-10-16 11:41:27 +11:00
parent 55fdf11555
commit 0efeed3d5e
2 changed files with 6 additions and 0 deletions

View File

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

View File

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