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