mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Correctly transform spreads to use proper concat method * Add tests to ensure array spread clones elements
10 lines
142 B
JavaScript
10 lines
142 B
JavaScript
// test that toConsumableArray clones the array.
|
|
|
|
function foo() {
|
|
const x = [...arguments];
|
|
|
|
expect(x).not.toBe(arguments);
|
|
}
|
|
|
|
foo(1,2);
|