Debian Codegraph @

packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/array-symbol-unsupported/exec.js

raw
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]);