☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-destructuring
/
test
/
fixtures
/
destructuring
/
array-symbol-unsupported
/
exec.js
☽
☼
packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/array-symbol-unsupported/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
var a = (() => [1, 2, 3])();
2
3
// Simulate old environment
4
global.Symbol = void 0;
5
6
var [first, ...rest] = a;
7
8
expect(first).toBe(1);
9
expect(rest).toEqual([2, 3]);