add support for spreads anywhere in list - fixes #73
This commit is contained in:
1
test/fixtures/syntax/spread/array-literal-multiple/actual.js
vendored
Normal file
1
test/fixtures/syntax/spread/array-literal-multiple/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var a = [b, ...c, d, e, ...f];
|
||||
3
test/fixtures/syntax/spread/array-literal-multiple/expected.js
vendored
Normal file
3
test/fixtures/syntax/spread/array-literal-multiple/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
var _slice = Array.prototype.slice;
|
||||
var a = [b].concat(_slice.call(c), [d, e], _slice.call(f));
|
||||
Reference in New Issue
Block a user