add destructuring no element test
This commit is contained in:
1
test/fixtures/syntax/destructuring/empty/actual.js
vendored
Normal file
1
test/fixtures/syntax/destructuring/empty/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var [, a, [b], [c], d] = ["foo", "hello", [", ", "junk"], ["world"]];
|
||||
5
test/fixtures/syntax/destructuring/empty/expected.js
vendored
Normal file
5
test/fixtures/syntax/destructuring/empty/expected.js
vendored
Normal 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];
|
||||
Reference in New Issue
Block a user