Debian Codegraph @

packages/babel-plugin-transform-spread/test/fixtures/regression/issue-8907/exec.js

raw
1 const arr = [];
2
3 arr.concat = () => {
4 throw new Error('Should not be called');
5 };
6 let x;
7 expect(() => {
8 x = [...arr];
9 }).not.toThrow();
10
11 expect(x).not.toBe(arr);