Debian Codegraph @

packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/non-iterable/exec.js

raw
1 var foo, bar;
2
3 expect(
4 () => [foo, bar] = undefined
5 ).toThrow(/destructure non-iterable/);
6
7 expect(
8 () => [foo, bar] = {}
9 ).toThrow(/destructure non-iterable/);
10
11 global.Symbol = void 0;
12
13 expect(
14 () => [foo, bar] = {}
15 ).toThrow(/destructure non-iterable/);